Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
scripts.systemhtml.DartLibraryEmitter Class Reference

Public Member Functions

def __init__ (self, multiemitter, dart_sources_dir, dart_libraries)
 
def FileEmitter (self, basename, library_name, template=None)
 
def AddTypeEntry (self, basename, idl_name, dart_name)
 
def EmitLibraries (self, auxiliary_dir, dart_js_interop)
 

Detailed Description

Definition at line 2264 of file systemhtml.py.

Constructor & Destructor Documentation

◆ __init__()

def scripts.systemhtml.DartLibraryEmitter.__init__ (   self,
  multiemitter,
  dart_sources_dir,
  dart_libraries 
)

Definition at line 2266 of file systemhtml.py.

2266 def __init__(self, multiemitter, dart_sources_dir, dart_libraries):
2267 self._multiemitter = multiemitter
2268 self._dart_sources_dir = dart_sources_dir
2269 self._path_to_emitter = {}
2270 self._dart_libraries = dart_libraries
2271

Member Function Documentation

◆ AddTypeEntry()

def scripts.systemhtml.DartLibraryEmitter.AddTypeEntry (   self,
  basename,
  idl_name,
  dart_name 
)

Definition at line 2284 of file systemhtml.py.

2284 def AddTypeEntry(self, basename, idl_name, dart_name):
2285 self._dart_libraries.AddTypeEntry(basename, idl_name, dart_name)
2286

◆ EmitLibraries()

def scripts.systemhtml.DartLibraryEmitter.EmitLibraries (   self,
  auxiliary_dir,
  dart_js_interop 
)

Definition at line 2287 of file systemhtml.py.

2287 def EmitLibraries(self, auxiliary_dir, dart_js_interop):
2288 self._dart_libraries.Emit(self._multiemitter, auxiliary_dir)
2289
2290
2291# ------------------------------------------------------------------------------

◆ FileEmitter()

def scripts.systemhtml.DartLibraryEmitter.FileEmitter (   self,
  basename,
  library_name,
  template = None 
)

Definition at line 2272 of file systemhtml.py.

2272 def FileEmitter(self, basename, library_name, template=None):
2273 aux_dir = os.path.join(self._dart_sources_dir, library_name)
2274 path = os.path.join(aux_dir, '%s.dart' % basename)
2275 if not path in self._path_to_emitter:
2276 emitter = self._multiemitter.FileEmitter(path)
2277 if not template is None:
2278 emitter = emitter.Emit(template)
2279 self._path_to_emitter[path] = emitter
2280
2281 self._dart_libraries.AddFile(basename, library_name, path)
2282 return self._path_to_emitter[path]
2283

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