Chromium Code Reviews| Index: tools/json_schema_compiler/cc_generator.py |
| diff --git a/tools/json_schema_compiler/cc_generator.py b/tools/json_schema_compiler/cc_generator.py |
| index 3efad841e48abb226715dd04c18944d1d9bfc1d8..b234ab05d3903b41731b9a193c91b40af800c546 100644 |
| --- a/tools/json_schema_compiler/cc_generator.py |
| +++ b/tools/json_schema_compiler/cc_generator.py |
| @@ -99,12 +99,6 @@ class CCGenerator(object): |
| c = Code() |
| if type_.functions: |
| - # Types with functions are not instantiable in C++ because they are |
| - # handled in pure Javascript and hence have no properties or |
| - # additionalProperties. |
| - if type_.properties: |
| - raise NotImplementedError('\n'.join(model.GetModelHierarchy(type_)) + |
| - '\nCannot generate both functions and properties on a type') |
|
battre
2012/05/09 16:28:08
The files generated after deleting this exception
not at google - send to devlin
2012/05/10 09:01:25
I don't quite understand what you mean, can you gi
battre
2012/05/10 16:40:29
Look at the events.json of this CL. The Event obje
|
| for function in type_.functions.values(): |
| (c.Concat( |
| self._GenerateFunction( |