Index: mojo/public/tools/bindings/pylib/mojom/parse/ast.py |
diff --git a/mojo/public/tools/bindings/pylib/mojom/parse/ast.py b/mojo/public/tools/bindings/pylib/mojom/parse/ast.py |
index ffb44e029b2ba1abf7e05f17e76b7c2c8712b117..6473b02b6ba292bd963d6dd9163c7db57b9348c3 100644 |
--- a/mojo/public/tools/bindings/pylib/mojom/parse/ast.py |
+++ b/mojo/public/tools/bindings/pylib/mojom/parse/ast.py |
@@ -326,7 +326,7 @@ class Struct(Definition): |
def __init__(self, name, attribute_list, body, **kwargs): |
assert attribute_list is None or isinstance(attribute_list, AttributeList) |
- assert isinstance(body, StructBody) |
+ assert isinstance(body, StructBody) or body is None |
super(Struct, self).__init__(name, **kwargs) |
self.attribute_list = attribute_list |
self.body = body |