third_party/blink/renderer/bindings/scripts/web_idl/database_builder.py
def build_database(filepaths, report_error):
    """
    Compiles IDL definitions in |filepaths| and builds a database.

    Args:
        filepaths: Paths to files of AstGroup.
        report_error: A callback that will be invoked when an error occurs due
            to inconsistent/invalid IDL definitions.  This callback takes an
            error message of type str and return value is not used.  It's okay
            to terminate the program in this callback.
    """
    assert isinstance(filepaths, (list, tuple))
    assert all(isinstance(filepath, str) for filepath in filepaths)
    assert callable(report_error)

    ir_map = IRMap()
    ref_to_idl_def_factory = RefByIdFactory()
    idl_type_factory = IdlTypeFactory()

    load_and_register_idl_definitions(
        filepaths=filepaths,
        register_ir=ir_map.register,
        create_ref_to_idl_def=ref_to_idl_def_factory.create,
        idl_type_factory=idl_type_factory)

    compiler = IdlCompiler(
        ir_map=ir_map,
        ref_to_idl_def_factory=ref_to_idl_def_factory,
        idl_type_factory=idl_type_factory,
        report_error=report_error)
    return compiler.build_database()

    Compiles IDL definitions in |filepaths| and builds a database.

    Args:
        filepaths: Paths to files of AstGroup.
        report_error: A callback that will be invoked when an error occurs due
            to inconsistent/invalid IDL definitions.  This callback takes an
            error message of type str and return value is not used.  It's okay
            to terminate the program in this callback.
    
Compiles IDL definitions in |filepaths| and builds a database.
Compiles IDL definitions in |filepaths| and builds a database .
def build_database(filepaths, report_error):
    assert isinstance(filepaths, (list, tuple))
    assert all(isinstance(filepath, str) for filepath in filepaths)
    assert callable(report_error)
    ir_map = IRMap()
    ref_to_idl_def_factory = RefByIdFactory()
    idl_type_factory = IdlTypeFactory()
    load_and_register_idl_definitions(
        filepaths=filepaths,
        register_ir=ir_map.register,
        create_ref_to_idl_def=ref_to_idl_def_factory.create,
        idl_type_factory=idl_type_factory)
    compiler = IdlCompiler(
        ir_map=ir_map,
        ref_to_idl_def_factory=ref_to_idl_def_factory,
        idl_type_factory=idl_type_factory,
        report_error=report_error)
    return compiler.build_database()
def build_database ( filepaths , report_error ) : assert isinstance ( filepaths , ( list , tuple ) ) assert all ( isinstance ( filepath , str ) for filepath in filepaths ) assert callable ( report_error ) ir_map = IRMap ( ) ref_to_idl_def_factory = RefByIdFactory ( ) idl_type_factory = IdlTypeFactory ( ) load_and_register_idl_definitions ( filepaths = filepaths , register_ir = ir_map . register , create_ref_to_idl_def = ref_to_idl_def_factory . create , idl_type_factory = idl_type_factory ) compiler = IdlCompiler ( ir_map = ir_map , ref_to_idl_def_factory = ref_to_idl_def_factory , idl_type_factory = idl_type_factory , report_error = report_error ) return compiler . build_database ( )
Compiles IDL definitions in |filepaths| and builds a database.
Compiles IDL definitions in |filepaths| and builds a database .
"""
    Compiles IDL definitions in |filepaths| and builds a database.

    Args:
        filepaths: Paths to files of AstGroup.
        report_error: A callback that will be invoked when an error occurs due
            to inconsistent/invalid IDL definitions.  This callback takes an
            error message of type str and return value is not used.  It's okay
            to terminate the program in this callback.
    """
filepaths
Paths to files of AstGroup.
Paths to files of AstGroup .
report_error
A callback that will be invoked when an error occurs due
to inconsistent/invalid IDL definitions.  This callback takes an
error message of type str and return value is not used.  It's okay
to terminate the program in this callback.
A callback that will be invoked when an error occurs due to inconsistent / invalid IDL definitions . This callback takes an error message of type str and return value is not used . It ' s okay to terminate the program in this callback .