Index: Source/bindings/scripts/idl_types.py |
diff --git a/Source/bindings/scripts/idl_types.py b/Source/bindings/scripts/idl_types.py |
index 5461158e8d533705f80fa5654138ce5e4e65d7c9..5d6c1ced8fb45d335567bd6134a37bc8fec09d06 100644 |
--- a/Source/bindings/scripts/idl_types.py |
+++ b/Source/bindings/scripts/idl_types.py |
@@ -173,6 +173,10 @@ class IdlType(object): |
return self.base_type in NUMERIC_TYPES and not self.array_or_sequence_type |
@property |
+ def is_primitive_type(self): |
+ return self.base_type in PRIMITIVE_TYPES and not self.array_or_sequence_type |
+ |
+ @property |
def is_interface_type(self): |
# Anything that is not another type is an interface type. |
# http://www.w3.org/TR/WebIDL/#idl-types |
@@ -289,6 +293,10 @@ class IdlUnionType(object): |
return False |
@property |
+ def is_primitivee_type(self): |
+ return False |
+ |
+ @property |
def is_sequence(self): |
# We do not support sequences of union types |
return False |