diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:08:45 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:08:45 +0000 |
commit | a9ead75506071e83ee16bd71b33f0e31d6b1a29f (patch) | |
tree | f6304ce7f46c8eca028394abc0f9360b9b62be04 /tools/json_schema_compiler/json_schema.py | |
parent | 26b8edabad74c4111b64fc8bb6edad95252053f5 (diff) | |
download | chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.zip chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.tar.gz chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.tar.bz2 |
Add support for 'nocompile' to IDL schema compiler.
The json schema stuff already has this support, to skip generation of C++
code for certain functions. Doing the same thing for IDL is slightly
complicated by the fact that we still want to generate JSON for functions
marked nocompile.
BUG=129080
TEST=includes unit and browser tests
Review URL: https://chromiumcodereview.appspot.com/10435003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/json_schema.py')
-rw-r--r-- | tools/json_schema_compiler/json_schema.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/json_schema_compiler/json_schema.py b/tools/json_schema_compiler/json_schema.py index 636f837..b3eca78 100644 --- a/tools/json_schema_compiler/json_schema.py +++ b/tools/json_schema_compiler/json_schema.py @@ -33,8 +33,7 @@ def DeleteNocompileNodes(item): def Load(filename): with open(filename, 'r') as handle: - schemas = DeleteNocompileNodes( - json.loads(json_comment_eater.Nom(handle.read()))) + schemas = json.loads(json_comment_eater.Nom(handle.read())) schema_util.PrefixSchemasWithNamespace(schemas) return schemas |