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

Unified Diff: trunk/src/tools/json_schema_compiler/idl_schema.py

Issue 47403003: Revert 231982 "Docserver: Display enum value descriptions in API..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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: trunk/src/tools/json_schema_compiler/idl_schema.py
===================================================================
--- trunk/src/tools/json_schema_compiler/idl_schema.py (revision 232015)
+++ trunk/src/tools/json_schema_compiler/idl_schema.py (working copy)
@@ -292,13 +292,7 @@
enum = []
for node in self.node.children:
if node.cls == 'EnumItem':
- enum_value = {'name': node.GetName()}
- for child in node.children:
- if child.cls == 'Comment':
- enum_value['description'] = ProcessComment(child.GetName())[0]
- else:
- raise ValueError('Did not process %s %s' % (child.cls, child))
- enum.append(enum_value)
+ enum.append(node.GetName())
elif node.cls == 'Comment':
self.description = ProcessComment(node.GetName())[0]
else:
« no previous file with comments | « trunk/src/tools/json_schema_compiler/cpp_type_generator.py ('k') | trunk/src/tools/json_schema_compiler/idl_schema_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698