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

Unified Diff: tools/json_schema_compiler/schema_bundle_generator.py

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Tested GetAllPossibleParameterLists better. Created 8 years, 5 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: tools/json_schema_compiler/schema_bundle_generator.py
diff --git a/tools/json_schema_compiler/schema_bundle_generator.py b/tools/json_schema_compiler/schema_bundle_generator.py
index 08cc4a8887f69499ff5deade4f8297f9e17ad1c0..759bbb835a909f79cffbf2e9591adf8d8cea02e1 100644
--- a/tools/json_schema_compiler/schema_bundle_generator.py
+++ b/tools/json_schema_compiler/schema_bundle_generator.py
@@ -77,15 +77,14 @@ class SchemaBundleGenerator(object):
c.Append("public:")
c.Sblock("static void RegisterAll(ExtensionFunctionRegistry* registry) {")
for namespace in self._model.namespaces.values():
+ namespace_name = self.CapitalizeFirstLetter(namespace.name.replace(
+ "experimental.", ""))
for function in namespace.functions.values():
if function.nocompile:
continue
- namespace_name = self.CapitalizeFirstLetter(namespace.name.replace(
- "experimental.", ""))
function_name = namespace_name + self.CapitalizeFirstLetter(
function.name)
- c.Append("registry->RegisterFunction<%sFunction>();" % (
- function_name))
+ c.Append("registry->RegisterFunction<%sFunction>();" % function_name)
c.Eblock("}")
c.Eblock("};")
c.Append()

Powered by Google App Engine
This is Rietveld 408576698