Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self, database) |
def | merge_imported_interfaces (self) |
def | import_idl_files (self, file_paths, import_options, is_dart_idl) |
def | fix_displacements (self, source) |
def | normalize_annotations (self, sources) |
def | map_dictionaries (self) |
def | fetch_constructor_data (self, options) |
def | examine_database (self) |
Public Attributes | |
conditionals_met | |
build | |
global_type_defs | |
Definition at line 173 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.__init__ | ( | self, | |
database | |||
) |
DatabaseBuilder is used for importing and merging interfaces into the Database
Definition at line 175 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.examine_database | ( | self | ) |
Definition at line 822 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.fetch_constructor_data | ( | self, | |
options | |||
) |
Definition at line 801 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.fix_displacements | ( | self, | |
source | |||
) |
E.g. In W3C, something is declared on HTMLDocument but in WebKit its on Document, so we need to mark that something in HTMLDocument with @WebKit(via=Document). The 'via' attribute specifies the parent interface that has the declaration.
Definition at line 711 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.import_idl_files | ( | self, | |
file_paths, | |||
import_options, | |||
is_dart_idl | |||
) |
Definition at line 628 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.map_dictionaries | ( | self | ) |
Changes the type of operations/constructors arguments from an IDL dictionary to a Dictionary. The IDL dictionary is just an enums of strings which are checked at run-time.
Definition at line 783 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.merge_imported_interfaces | ( | self | ) |
Merges all imported interfaces and loads them into the DB.
Definition at line 534 of file databasebuilder.py.
def scripts.databasebuilder.DatabaseBuilder.normalize_annotations | ( | self, | |
sources | |||
) |
Makes the IDLs less verbose by removing annotation attributes that are identical to the ones defined at the interface level. Args: sources -- list of source names to normalize.
Definition at line 755 of file databasebuilder.py.
scripts.databasebuilder.DatabaseBuilder.build |
Definition at line 186 of file databasebuilder.py.
scripts.databasebuilder.DatabaseBuilder.conditionals_met |
Definition at line 183 of file databasebuilder.py.
scripts.databasebuilder.DatabaseBuilder.global_type_defs |
Definition at line 189 of file databasebuilder.py.