Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: lib/dom/scripts/dartgenerator.py

Issue 10913114: Don't generate dom_deprecated files at all. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698