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

Side by Side Diff: lib/dom/scripts/dartgenerator.py

Issue 10702202: Introduce TypeRegistry class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This module generates Dart APIs from the IDL database.""" 6 """This module generates Dart APIs from the IDL database."""
7 7
8 import emitter 8 import emitter
9 import idlnode 9 import idlnode
10 import logging 10 import logging
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 interface.parents.append(idlnode.IDLParentInterface(ast)) 280 interface.parents.append(idlnode.IDLParentInterface(ast))
281 281
282 # ------------------------------------------------------------------------------ 282 # ------------------------------------------------------------------------------
283 283
284 class DummyImplementationSystem(systembase.System): 284 class DummyImplementationSystem(systembase.System):
285 """Generates a dummy implementation for use by the editor analysis. 285 """Generates a dummy implementation for use by the editor analysis.
286 286
287 All the code comes from hand-written library files. 287 All the code comes from hand-written library files.
288 """ 288 """
289 289
290 def __init__(self, templates, database, emitters, output_dir): 290 def __init__(self, context):
Anton Muhin 2012/07/16 10:22:22 options :)
291 super(DummyImplementationSystem, self).__init__( 291 super(DummyImplementationSystem, self).__init__(context)
292 templates, database, emitters, output_dir)
293 factory_providers_file = os.path.join(self._output_dir, 'src', 'dummy', 292 factory_providers_file = os.path.join(self._output_dir, 'src', 'dummy',
294 'RegularFactoryProviders.dart') 293 'RegularFactoryProviders.dart')
295 self._factory_providers_emitter = self._emitters.FileEmitter( 294 self._factory_providers_emitter = self._emitters.FileEmitter(
296 factory_providers_file) 295 factory_providers_file)
297 self._impl_file_paths = [factory_providers_file] 296 self._impl_file_paths = [factory_providers_file]
298 297
299 def ProcessInterface(self, interface): 298 def ProcessInterface(self, interface):
300 DummyInterfaceGenerator(self, interface).Generate() 299 DummyInterfaceGenerator(self, interface).Generate()
301 300
302 def ProcessCallback(self, interface, info): 301 def ProcessCallback(self, interface, info):
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 PARAMETERS=constructor_info.ParametersImplementationDeclaration()) 336 PARAMETERS=constructor_info.ParametersImplementationDeclaration())
338 337
339 def FinishInterface(self): 338 def FinishInterface(self):
340 pass 339 pass
341 340
342 def AddTypedArrayConstructors(self, element_type): 341 def AddTypedArrayConstructors(self, element_type):
343 pass 342 pass
344 343
345 def AddEventAttributes(self, event_attrs): 344 def AddEventAttributes(self, event_attrs):
346 pass 345 pass
OLDNEW
« 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