示例#1
0
def main():
    options, _ = parse_options()
    idl_file_names = utilities.read_idl_files_list_from_file(options.idl_list_file)

    parser = blink_idl_parser.BlinkIDLParser()
    collector = Collector(component=options.component, parser=parser)
    collector.collect_from_idl_files(idl_file_names)
    utilities.write_pickle_file(options.output, collector.get_collection())
示例#2
0
def main():
    options, _ = parse_options()

    filepaths = utilities.read_idl_files_list_from_file(options.idl_list_file)
    parser = blink_idl_parser.BlinkIDLParser()
    ast_group = web_idl.AstGroup(web_idl.Component(options.component))
    for filepath in filepaths:
        ast_group.add_ast_node(blink_idl_parser.parse_file(parser, filepath))
    ast_group.write_to_file(options.output)
示例#3
0
def main():
    options, args = parse_options()
    if args:
        raise RuntimeError('unknown arguments {}'.format(args))

    filepaths = utilities.read_idl_files_list_from_file(options.idl_list_file)
    parser = blink_idl_parser.BlinkIDLParser()
    ast_group = web_idl.AstGroup(options.component)
    for filepath in filepaths:
        ast_group.add_ast_node(blink_idl_parser.parse_file(parser, filepath))
    ast_group.write_to_file(options.output)
示例#4
0
    def __init__(self, interface_dependencies_filename=None, additional_idl_filenames=None, idl_attributes_filename=None, outputdir='', verbose=False):
        if idl_attributes_filename:
            self.extended_attribute_validator = idl_validator.IDLExtendedAttributeValidator(idl_attributes_filename)
        else:
            self.extended_attribute_validator = None

        if interface_dependencies_filename:
            self.interface_dependency_resolver = interface_dependency_resolver.InterfaceDependencyResolver(interface_dependencies_filename, additional_idl_filenames, self)
        else:
            self.interface_dependency_resolver = None

        self.parser = blink_idl_parser.BlinkIDLParser(outputdir=outputdir, verbose=verbose)
示例#5
0
    def __init__(self,
                 interfaces_info=None,
                 idl_attributes_filename=None,
                 outputdir=''):
        if idl_attributes_filename:
            self.extended_attribute_validator = idl_validator.IDLExtendedAttributeValidator(
                idl_attributes_filename)
        else:
            self.extended_attribute_validator = None

        if interfaces_info:
            self.interface_dependency_resolver = interface_dependency_resolver.InterfaceDependencyResolver(
                interfaces_info, self)
        else:
            self.interface_dependency_resolver = None

        self.parser = blink_idl_parser.BlinkIDLParser(outputdir=outputdir)
示例#6
0
 def __init__(self, component, parser=blink_idl_parser.BlinkIDLParser()):
     self._component = component
     self._collection = Collection(component)
     self._parser = parser