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

Unified Diff: tools/json_schema_compiler/cpp_type_generator.py

Issue 23549025: Clean up JSON Schema Compiler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed enum test and added blank lines. Created 7 years, 3 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 | « tools/json_schema_compiler/cpp_generator.py ('k') | tools/json_schema_compiler/cpp_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/cpp_type_generator.py
diff --git a/tools/json_schema_compiler/cpp_type_generator.py b/tools/json_schema_compiler/cpp_type_generator.py
index efb712ee7289e55a43c8efc52472ecae596e8789..4c0306d18bb04ca68c8161ec5a4040ff1743d1b2 100644
--- a/tools/json_schema_compiler/cpp_type_generator.py
+++ b/tools/json_schema_compiler/cpp_type_generator.py
@@ -3,10 +3,9 @@
# found in the LICENSE file.
from code import Code
-from model import Namespace, PropertyType, Type
+from model import PropertyType
import cpp_util
from json_parse import OrderedDict
-from operator import attrgetter
import schema_util
class _TypeDependency(object):
@@ -21,6 +20,7 @@ class _TypeDependency(object):
def GetSortKey(self):
return '%s.%s' % (self.type_.namespace.name, self.type_.name)
+
class CppTypeGenerator(object):
"""Manages the types of properties and provides utilities for getting the
C++ type out of a model.Property
« no previous file with comments | « tools/json_schema_compiler/cpp_generator.py ('k') | tools/json_schema_compiler/cpp_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698