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

Unified Diff: tools/json_schema_compiler/compiler.py

Issue 9834088: Make json_schema_compiler resolve type names via resolution rules. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Naming fix type_ -> type_name Created 8 years, 9 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
« no previous file with comments | « no previous file | tools/json_schema_compiler/cpp_type_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/compiler.py
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py
index 8b95f7f0f2597b92ade6480ffc42086280f99e10..38235e07f9c9833705f99c341b718ad1db3fdb11 100755
--- a/tools/json_schema_compiler/compiler.py
+++ b/tools/json_schema_compiler/compiler.py
@@ -74,6 +74,8 @@ def handle_single_schema(filename, dest_dir, root, root_namespace):
type_generator = cpp_type_generator.CppTypeGenerator(
root_namespace, namespace, namespace.unix_name)
for referenced_namespace in api_model.namespaces.values():
+ if referenced_namespace == namespace:
+ continue
type_generator.AddNamespace(
referenced_namespace,
referenced_namespace.unix_name)
« no previous file with comments | « no previous file | tools/json_schema_compiler/cpp_type_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698