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

Unified Diff: tools/json_schema_compiler/idl_schema.py

Issue 10435003: Add support for 'nocompile' to IDL schema compiler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes, and rebased Created 8 years, 7 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/compiler.py ('k') | tools/json_schema_compiler/idl_schema_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/idl_schema.py
diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
index 8e46d1218a26bd6339fbcb5b1dbd0ad2ee5bb759..d65746a210af0d24649677719f8291107a474fa6 100644
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -131,10 +131,9 @@ class Member(object):
def process(self, callbacks):
properties = {}
name = self.node.GetName()
- if self.node.GetProperty('OPTIONAL'):
- properties['optional'] = True
- if self.node.GetProperty('nodoc'):
- properties['nodoc'] = True
+ for property_name in ('OPTIONAL', 'nodoc', 'nocompile'):
+ if self.node.GetProperty(property_name):
+ properties[property_name.lower()] = True
is_function = False
parameter_comments = {}
for node in self.node.children:
« no previous file with comments | « tools/json_schema_compiler/compiler.py ('k') | tools/json_schema_compiler/idl_schema_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698