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 providesfunctionality for systems to generate | 6 """This module providesfunctionality for systems to generate |
7 Dart interfaces from the IDL database.""" | 7 Dart interfaces from the IDL database.""" |
8 | 8 |
9 import os | 9 import os |
10 import systembase | 10 import systembase |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 (getter, setter)) | 189 (getter, setter)) |
190 | 190 |
191 def AddOperation(self, info): | 191 def AddOperation(self, info): |
192 """ | 192 """ |
193 Arguments: | 193 Arguments: |
194 operations - contains the overloads, one or more operations with the same | 194 operations - contains the overloads, one or more operations with the same |
195 name. | 195 name. |
196 """ | 196 """ |
197 self._members_emitter.Emit('\n' | 197 self._members_emitter.Emit('\n' |
198 ' $TYPE $NAME($PARAMS);\n', | 198 ' $TYPE $NAME($PARAMS);\n', |
199 TYPE=info.type_name, | 199 TYPE=DartType(info.type_name), |
200 NAME=info.name, | 200 NAME=info.name, |
201 PARAMS=info.ParametersInterfaceDeclaration()) | 201 PARAMS=info.ParametersInterfaceDeclaration()) |
OLD | NEW |