Index: mojo/public/bindings/parser/mojo_translate.py |
diff --git a/mojo/public/bindings/parser/mojo_translate.py b/mojo/public/bindings/parser/mojo_translate.py |
index 46aa071c487504392178dfaceb407b5c21e0a22b..60b06e3f0700c5e53c0cc370340745bfcf243ef0 100755 |
--- a/mojo/public/bindings/parser/mojo_translate.py |
+++ b/mojo/public/bindings/parser/mojo_translate.py |
@@ -76,11 +76,12 @@ class MojomBuilder(): |
self.mojom['structs'].append(struct) |
# TODO(darin): Add support for |attributes| |
- def AddInterface(self, name, methods): |
+ def AddInterface(self, name, attributes, methods): |
interface = {} |
interface['name'] = name |
interface['methods'] = MapMethods(methods) |
self.mojom['interfaces'].append(interface) |
+ # TODO(darin): Add support for |attributes| |
darin (slow to review)
2013/11/07 06:14:31
This TODO is about adding some way to express attr
|
def AddModule(self, name, contents): |
self.mojom['name'] = name |
@@ -91,7 +92,7 @@ class MojomBuilder(): |
if item[0] == 'STRUCT': |
self.AddStruct(name=item[1], attributes=item[2], fields=item[3]) |
elif item[0] == 'INTERFACE': |
- self.AddInterface(name=item[1], methods=item[2]) |
+ self.AddInterface(name=item[1], attributes=item[2], methods=item[3]) |
def Build(self, tree): |
if tree[0] == 'MODULE': |