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

Unified Diff: third_party/WebKit/Source/bindings/scripts/idl_compiler.py

Issue 2458913003: Add first sketch of the webmodules code generator. (Closed)
Patch Set: Implemented WebModuleAPI extended attribute. Created 4 years, 1 month 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: third_party/WebKit/Source/bindings/scripts/idl_compiler.py
diff --git a/third_party/WebKit/Source/bindings/scripts/idl_compiler.py b/third_party/WebKit/Source/bindings/scripts/idl_compiler.py
index c8e232ef3dc0fff9d89479f0ff8666a3716e8122..444415c1d9c5bdb47b46633bccaa6439302b5cea 100755
--- a/third_party/WebKit/Source/bindings/scripts/idl_compiler.py
+++ b/third_party/WebKit/Source/bindings/scripts/idl_compiler.py
@@ -115,6 +115,11 @@ class IdlCompiler(object):
target_definitions = definitions[self.target_component]
output_code_list = self.code_generator.generate_code(
target_definitions, interface_name)
+
+ # Generator may choose to omit the file.
+ if output_code_list is None:
+ return
+
for output_path, output_code in output_code_list:
write_file(output_code, output_path)

Powered by Google App Engine
This is Rietveld 408576698