Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: tools/json_schema_compiler/compiler.py

Issue 10022005: Let json schema compiler handle using arrays as types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaned up code Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/compiler.py
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py
index 38235e07f9c9833705f99c341b718ad1db3fdb11..57755c0a85d63070e02bf040ed59591558178ed8 100755
--- a/tools/json_schema_compiler/compiler.py
+++ b/tools/json_schema_compiler/compiler.py
@@ -82,7 +82,8 @@ def handle_single_schema(filename, dest_dir, root, root_namespace):
h_code = (h_generator.HGenerator(namespace, type_generator)
.Generate().Render())
- cc_code = (cc_generator.CCGenerator(namespace, type_generator)
+ cc_code = (cc_generator.CCGenerator(namespace, type_generator,
+ referenced_schemas)
.Generate().Render())
if dest_dir:

Powered by Google App Engine
This is Rietveld 408576698