Index: lib/dom/scripts/dartgenerator.py |
=================================================================== |
--- lib/dom/scripts/dartgenerator.py (revision 11969) |
+++ lib/dom/scripts/dartgenerator.py (working copy) |
@@ -287,68 +287,3 @@ |
for operation in interface.operations: |
if operation.ext_attrs.get('CallWith') == 'ScriptArguments|CallStack': |
operation.arguments.append(ARG) |
- |
-# ------------------------------------------------------------------------------ |
- |
-class DummyImplementationSystem(systembase.System): |
- """Generates a dummy implementation for use by the editor analysis. |
- |
- All the code comes from hand-written library files. |
- """ |
- |
- def __init__(self, options): |
- super(DummyImplementationSystem, self).__init__(options) |
- factory_providers_file = os.path.join(self._output_dir, 'src', 'dummy', |
- 'RegularFactoryProviders.dart') |
- self._factory_providers_emitter = self._emitters.FileEmitter( |
- factory_providers_file) |
- self._impl_file_paths = [factory_providers_file] |
- |
- def ProcessInterface(self, interface): |
- DummyInterfaceGenerator(self, interface).Generate() |
- |
- def ProcessCallback(self, interface, info): |
- pass |
- |
- def GenerateLibraries(self): |
- # Library generated for implementation. |
- self._GenerateLibFile( |
- 'dom_dummy.darttemplate', |
- os.path.join(self._output_dir, 'dom_dummy.dart'), |
- (self._interface_system._dart_interface_file_paths + |
- self._impl_file_paths)) |
- |
- |
-# ------------------------------------------------------------------------------ |
- |
-class DummyInterfaceGenerator(systembase.BaseGenerator): |
- """Generates dummy implementation.""" |
- |
- def __init__(self, system, interface): |
- super(DummyInterfaceGenerator, self).__init__(system._database, interface) |
- self._system = system |
- |
- def StartInterface(self): |
- # There is no implementation to match the interface, but there might be a |
- # factory constructor for the Dart interface. |
- constructor_info = AnalyzeConstructor(self._interface) |
- if constructor_info: |
- dart_interface_name = self._interface.id |
- self._EmitFactoryProvider(dart_interface_name, constructor_info) |
- |
- def _EmitFactoryProvider(self, interface_name, constructor_info): |
- factory_provider = '_' + interface_name + 'FactoryProvider' |
- self._system._factory_providers_emitter.Emit( |
- self._system._templates.Load('factoryprovider.darttemplate'), |
- FACTORYPROVIDER=factory_provider, |
- CONSTRUCTOR=interface_name, |
- PARAMETERS=constructor_info.ParametersImplementationDeclaration(DartType)) |
- |
- def FinishInterface(self): |
- pass |
- |
- def AddTypedArrayConstructors(self, element_type): |
- pass |
- |
- def AddEventAttributes(self, event_attrs): |
- pass |