| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 326     if constructor_info: | 326     if constructor_info: | 
| 327       dart_interface_name = self._interface.id | 327       dart_interface_name = self._interface.id | 
| 328       self._EmitFactoryProvider(dart_interface_name, constructor_info) | 328       self._EmitFactoryProvider(dart_interface_name, constructor_info) | 
| 329 | 329 | 
| 330   def _EmitFactoryProvider(self, interface_name, constructor_info): | 330   def _EmitFactoryProvider(self, interface_name, constructor_info): | 
| 331     factory_provider = '_' + interface_name + 'FactoryProvider' | 331     factory_provider = '_' + interface_name + 'FactoryProvider' | 
| 332     self._system._factory_providers_emitter.Emit( | 332     self._system._factory_providers_emitter.Emit( | 
| 333         self._system._templates.Load('factoryprovider.darttemplate'), | 333         self._system._templates.Load('factoryprovider.darttemplate'), | 
| 334         FACTORYPROVIDER=factory_provider, | 334         FACTORYPROVIDER=factory_provider, | 
| 335         CONSTRUCTOR=interface_name, | 335         CONSTRUCTOR=interface_name, | 
| 336         PARAMETERS=constructor_info.ParametersImplementationDeclaration()) | 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 | 
|---|