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 860438d30d1c98fc1e1d9fe6e516849295440e7f..6a86f167f9d3735835b031ceec6cbbd188294068 100644 |
--- a/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
@@ -671,3 +671,10 @@ def PassesAssociatedKinds(interface): |
if _ContainsAssociatedKinds(param.kind, visited_kinds): |
return True |
return False |
+ |
+ |
+def HasSyncMethods(interface): |
+ for method in interface.methods: |
+ if method.sync: |
+ return True |
+ return False |