summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/model.py
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2015-03-24 10:07:28 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-24 17:08:16 +0000
commit8c3a458ed264db8970f72c71be0e32a2a071ec30 (patch)
treef5332fd61ea3539f2b957ec542f804c6a67c1ae5 /tools/json_schema_compiler/model.py
parentbb033ee318fc12de0b9e136c99acd25950b08e8f (diff)
downloadchromium_src-8c3a458ed264db8970f72c71be0e32a2a071ec30.zip
chromium_src-8c3a458ed264db8970f72c71be0e32a2a071ec30.tar.gz
chromium_src-8c3a458ed264db8970f72c71be0e32a2a071ec30.tar.bz2
Generate externs automatically from json/idl files
Continued from https://codereview.chromium.org/511943003/. BUG=469920 Review URL: https://codereview.chromium.org/1006373003 Cr-Commit-Position: refs/heads/master@{#322016}
Diffstat (limited to 'tools/json_schema_compiler/model.py')
-rw-r--r--tools/json_schema_compiler/model.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 7745dcc..3f7b2fe 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -456,6 +456,8 @@ class _PropertyTypeInfo(_Enum):
_Enum.__init__(self, name)
self.is_fundamental = is_fundamental
+ def __repr__(self):
+ return self.name
class PropertyType(object):
"""Enum of different types of properties/parameters.