Chromium Code Reviews| Index: lib/dom/scripts/generator.py |
| diff --git a/lib/dom/scripts/generator.py b/lib/dom/scripts/generator.py |
| index 121c46e5b79a793c6cc721b87a662d455c23c57d..8c698a4846b37b785bcfaed9727fc55f1210b72c 100644 |
| --- a/lib/dom/scripts/generator.py |
| +++ b/lib/dom/scripts/generator.py |
| @@ -388,11 +388,13 @@ class OperationInfo(object): |
| param_infos: A list of ParamInfo. |
| """ |
| - def ParametersInterfaceDeclaration(self): |
| + def ParametersInterfaceDeclaration(self, rename_type=None): |
|
Anton Muhin
2012/06/07 11:43:47
why not rename_type=lambda x: x?
podivilov
2012/06/08 18:03:25
Done.
|
| """Returns a formatted string declaring the parameters for the interface.""" |
| + if not rename_type: |
| + rename_type = lambda x: x |
| return self._FormatParams( |
| self.param_infos, True, |
| - lambda param: TypeOrNothing(param.dart_type, param.type_id)) |
| + lambda param: TypeOrNothing(rename_type(param.dart_type), param.type_id)) |
| def ParametersImplementationDeclaration(self, rename_type=None): |
| """Returns a formatted string declaring the parameters for the |