| Index: Source/bindings/scripts/idl_definitions.py
|
| diff --git a/Source/bindings/scripts/idl_definitions.py b/Source/bindings/scripts/idl_definitions.py
|
| index e6b2a9a1cf2fdfd72e3b8b81d4ccb1a2b4aab202..2230c8f6e207153d8145a7d7dca1560077f1bf7b 100644
|
| --- a/Source/bindings/scripts/idl_definitions.py
|
| +++ b/Source/bindings/scripts/idl_definitions.py
|
| @@ -653,7 +653,9 @@ def type_node_inner_to_type(node, is_array=False, is_nullable=False):
|
| # either a typedef shorthand (but not a Typedef declaration itself) or an
|
| # interface type. We do not distinguish these, and just use the type name.
|
| if node_class in ['PrimitiveType', 'Typeref']:
|
| - return IdlType(node.GetName(), is_array=is_array, is_nullable=is_nullable)
|
| + # unrestricted syntax: unrestricted double | unrestricted float
|
| + is_unrestricted = node.GetProperty('UNRESTRICTED') or False
|
| + return IdlType(node.GetName(), is_array=is_array, is_nullable=is_nullable, is_unrestricted=is_unrestricted)
|
| elif node_class == 'Any':
|
| return IdlType('any', is_array=is_array, is_nullable=is_nullable)
|
| elif node_class == 'Sequence':
|
|
|