| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |