Index: mojo/public/bindings/pylib/parse/mojo_translate.py |
diff --git a/mojo/public/bindings/pylib/parse/mojo_translate.py b/mojo/public/bindings/pylib/parse/mojo_translate.py |
index 4ba0d142d65632e922b5d652ff525fa6bbdef9cd..c8d322fd42fbcf53b5d1b3621a05bb87d9bb1432 100755 |
--- a/mojo/public/bindings/pylib/parse/mojo_translate.py |
+++ b/mojo/public/bindings/pylib/parse/mojo_translate.py |
@@ -81,9 +81,12 @@ class MojomBuilder(): |
if methods: |
for method in methods: |
if method[0] == 'METHOD': |
- out.append({'name': method[1], |
- 'parameters': self.MapParameters(method[2]), |
- 'ordinal': self.MapOrdinal(method[3])}) |
+ method_dict = {'name': method[1], |
+ 'parameters': self.MapParameters(method[2]), |
+ 'ordinal': self.MapOrdinal(method[3])} |
+ if method[4] != None: |
+ method_dict['response_parameters'] = self.MapParameters(method[4]) |
+ out.append(method_dict) |
return out |