Flutter Engine
The Flutter Engine
|
Classes | |
class | CodeGeneratorDart |
Functions | |
initialize_jinja_env (cache_dir) | |
conditional_if_endif (code, conditional_string) | |
runtime_enabled_if (code, runtime_enabled_function_name) | |
main (argv) | |
Variables | |
module_path | |
module_filename | |
third_party_dir | |
templates_dir = os.path.normpath(os.path.join(module_path, 'templates')) | |
str | module_pyname = os.path.splitext(module_filename)[0] + '.py' |
dart_script_path = os.path.dirname(os.path.abspath(__file__)) | |
script_path | |
INTERFACES_WITHOUT_RESOLVERS | |
Generate Blink C++ bindings (.h and .cpp files) for use by Dart:HTML. If run itself, caches Jinja templates (and creates dummy file for build, since cache filenames are unpredictable and opaque). This module is *not* concurrency-safe without care: bytecode caching creates a race condition on cache *write* (crashes if one process tries to read a partially-written cache). However, if you pre-cache the templates (by running the module itself), then you can parallelize compiling individual files, since cache *reading* is safe. Input: An object of class IdlDefinitions, containing an IDL interface X Output: DartX.h and DartX.cpp Design doc: http://www.chromium.org/developers/design-documents/idl-compiler
code_generator_dart.conditional_if_endif | ( | code, | |
conditional_string | |||
) |
Definition at line 273 of file code_generator_dart.py.
code_generator_dart.initialize_jinja_env | ( | cache_dir | ) |
Definition at line 255 of file code_generator_dart.py.
code_generator_dart.main | ( | argv | ) |
Definition at line 294 of file code_generator_dart.py.
code_generator_dart.runtime_enabled_if | ( | code, | |
runtime_enabled_function_name | |||
) |
Definition at line 282 of file code_generator_dart.py.
code_generator_dart.dart_script_path = os.path.dirname(os.path.abspath(__file__)) |
Definition at line 73 of file code_generator_dart.py.
code_generator_dart.INTERFACES_WITHOUT_RESOLVERS |
Definition at line 87 of file code_generator_dart.py.
code_generator_dart.module_filename |
Definition at line 58 of file code_generator_dart.py.
code_generator_dart.module_path |
Definition at line 58 of file code_generator_dart.py.
str code_generator_dart.module_pyname = os.path.splitext(module_filename)[0] + '.py' |
Definition at line 65 of file code_generator_dart.py.
code_generator_dart.script_path |
Definition at line 74 of file code_generator_dart.py.
code_generator_dart.templates_dir = os.path.normpath(os.path.join(module_path, 'templates')) |
Definition at line 62 of file code_generator_dart.py.
code_generator_dart.third_party_dir |
Definition at line 59 of file code_generator_dart.py.