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

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

Issue 10703194: Extract interfaces and members renaming logic to a new HtmlRenamer 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/database.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, context): 290 def __init__(self, options):
291 super(DummyImplementationSystem, self).__init__(context) 291 super(DummyImplementationSystem, self).__init__(options)
292 factory_providers_file = os.path.join(self._output_dir, 'src', 'dummy', 292 factory_providers_file = os.path.join(self._output_dir, 'src', 'dummy',
293 'RegularFactoryProviders.dart') 293 'RegularFactoryProviders.dart')
294 self._factory_providers_emitter = self._emitters.FileEmitter( 294 self._factory_providers_emitter = self._emitters.FileEmitter(
295 factory_providers_file) 295 factory_providers_file)
296 self._impl_file_paths = [factory_providers_file] 296 self._impl_file_paths = [factory_providers_file]
297 297
298 def ProcessInterface(self, interface): 298 def ProcessInterface(self, interface):
299 DummyInterfaceGenerator(self, interface).Generate() 299 DummyInterfaceGenerator(self, interface).Generate()
300 300
301 def ProcessCallback(self, interface, info): 301 def ProcessCallback(self, interface, info):
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 PARAMETERS=constructor_info.ParametersImplementationDeclaration(DartType )) 336 PARAMETERS=constructor_info.ParametersImplementationDeclaration(DartType ))
337 337
338 def FinishInterface(self): 338 def FinishInterface(self):
339 pass 339 pass
340 340
341 def AddTypedArrayConstructors(self, element_type): 341 def AddTypedArrayConstructors(self, element_type):
342 pass 342 pass
343 343
344 def AddEventAttributes(self, event_attrs): 344 def AddEventAttributes(self, event_attrs):
345 pass 345 pass
OLDNEW
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | lib/dom/scripts/database.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698