Index: Source/bindings/scripts/idl_types.py |
diff --git a/Source/bindings/scripts/idl_types.py b/Source/bindings/scripts/idl_types.py |
index ac158001c2895186eb0ca99a881e78f8f4761d1c..fa7d00b7f434737f3a2c60d5178752a41ac1962f 100644 |
--- a/Source/bindings/scripts/idl_types.py |
+++ b/Source/bindings/scripts/idl_types.py |
@@ -274,6 +274,11 @@ class IdlUnionType(IdlTypeBase): |
return True |
@property |
+ def as_union_type(self): |
+ # Note: Use this to "look through" a possible IdlNullableType wrapper. |
+ return self |
+ |
+ @property |
def name(self): |
"""Return type name (or inner type name if nullable) |