Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
compiler.IdlCompilerDart Class Reference
Inheritance diagram for compiler.IdlCompilerDart:
dart_compiler.IdlCompiler

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def compile_file (self, idl_filename)
 
def generate_global (self)
 
- Public Member Functions inherited from dart_compiler.IdlCompiler
def __init__ (self, output_directory, code_generator=None, interfaces_info=None, interfaces_info_filename='', only_if_changed=False)
 
def compile_and_write (self, idl_filename, output_filenames)
 
def generate_global_and_write (self, output_filenames)
 
def compile_file (self, idl_filename)
 

Public Attributes

 output_directory
 
 code_generator
 
- Public Attributes inherited from dart_compiler.IdlCompiler
 code_generator
 
 interfaces_info
 
 only_if_changed
 
 output_directory
 
 reader
 

Detailed Description

Definition at line 76 of file compiler.py.

Constructor & Destructor Documentation

◆ __init__()

def compiler.IdlCompilerDart.__init__ (   self,
output_directory,
**  code_generator 
)
Args:
    interfaces_info:
        interfaces_info dict
        (avoids auxiliary file in run-bindings-tests)
    interfaces_info_file: filename of pickled interfaces_info

Reimplemented from dart_compiler.IdlCompiler.

Definition at line 78 of file compiler.py.

78 def __init__(self, *args, **kwargs):
79 IdlCompiler.__init__(self, *args, **kwargs)
80
81 interfaces_info = self.interfaces_info
82 self.output_directory = self.output_directory
83
84 self.code_generator = CodeGeneratorDart(interfaces_info,
85 self.output_directory)
86

Member Function Documentation

◆ compile_file()

def compiler.IdlCompilerDart.compile_file (   self,
  idl_filename 
)

Reimplemented from dart_compiler.IdlCompiler.

Definition at line 87 of file compiler.py.

87 def compile_file(self, idl_filename):
88 interface_name = idl_filename_to_interface_name(idl_filename)
89 header_filename = os.path.join(self.output_directory,
90 'Dart%s.h' % interface_name)
91 cpp_filename = os.path.join(self.output_directory,
92 'Dart%s.cpp' % interface_name)
93 return self.compile_and_write(idl_filename,
94 (header_filename, cpp_filename))
95
def idl_filename_to_interface_name(idl_filename)
Definition: compiler.py:70

◆ generate_global()

def compiler.IdlCompilerDart.generate_global (   self)

Definition at line 96 of file compiler.py.

96 def generate_global(self):
97 global_header_filename = os.path.join(self.output_directory,
98 'DartWebkitClassIds.h')
99 global_cpp_filename = os.path.join(self.output_directory,
100 'DartWebkitClassIds.cpp')
101 self.generate_global_and_write((global_header_filename,
102 global_cpp_filename))
103
104

Member Data Documentation

◆ code_generator

compiler.IdlCompilerDart.code_generator

Definition at line 84 of file compiler.py.

◆ output_directory

compiler.IdlCompilerDart.output_directory

Definition at line 82 of file compiler.py.


The documentation for this class was generated from the following file: