Index: mojo/public/tools/bindings/pylib/mojom/generate/module.py |
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/module.py b/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
index cb7608445087aa9d5c27c9cf0e1648fdd9853d6c..860438d30d1c98fc1e1d9fe6e516849295440e7f 100644 |
--- a/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
@@ -135,6 +135,7 @@ PRIMITIVES = ( |
ATTRIBUTE_MIN_VERSION = 'MinVersion' |
ATTRIBUTE_EXTENSIBLE = 'Extensible' |
+ATTRIBUTE_SYNC = 'Sync' |
class NamedValue(object): |
@@ -376,6 +377,11 @@ class Method(object): |
return self.attributes.get(ATTRIBUTE_MIN_VERSION) \ |
if self.attributes else None |
+ @property |
+ def sync(self): |
+ return self.attributes.get(ATTRIBUTE_SYNC) \ |
+ if self.attributes else None |
+ |
class Interface(ReferenceKind): |
ReferenceKind.AddSharedProperty('module') |