| Index: tools/json_schema_compiler/idl_schema.py
|
| diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
|
| index 991b1c6bb9d060ce44ca842555b345fd2dc509e6..5393e4d699774c79fa605bc76c080de842312159 100644
|
| --- a/tools/json_schema_compiler/idl_schema.py
|
| +++ b/tools/json_schema_compiler/idl_schema.py
|
| @@ -407,7 +407,7 @@ class IDLSchema(object):
|
| internal = False
|
| description = None
|
| platforms = None
|
| - compiler_options = None
|
| + compiler_options = {}
|
| deprecated = None
|
| for node in self.idl:
|
| if node.cls == 'Namespace':
|
| @@ -418,7 +418,7 @@ class IDLSchema(object):
|
| description = ''
|
| namespace = Namespace(node, description, nodoc, internal,
|
| platforms=platforms,
|
| - compiler_options=compiler_options,
|
| + compiler_options=compiler_options or None,
|
| deprecated=deprecated)
|
| namespaces.append(namespace.process())
|
| nodoc = False
|
| @@ -437,7 +437,9 @@ class IDLSchema(object):
|
| elif node.name == 'platforms':
|
| platforms = list(node.value)
|
| elif node.name == 'implemented_in':
|
| - compiler_options = {'implemented_in': node.value}
|
| + compiler_options['implemented_in'] = node.value
|
| + elif node.name == 'camel_case_enum_to_string':
|
| + compiler_options['camel_case_enum_to_string'] = node.value
|
| elif node.name == 'deprecated':
|
| deprecated = str(node.value)
|
| else:
|
|
|