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

Unified Diff: Source/bindings/dart/scripts/code_generator_dart.py

Issue 882713004: Fixed dictionary files not being compiled and part of link and hooked up enums. (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: merged Created 5 years, 11 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 | « Source/bindings/core/idl.gypi ('k') | Source/bindings/dart/scripts/dart_utilities.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/scripts/code_generator_dart.py
diff --git a/Source/bindings/dart/scripts/code_generator_dart.py b/Source/bindings/dart/scripts/code_generator_dart.py
index 5b78ceba4722daac6fb8343780e7c8efe558672c..efa8ef07bb5d0ffab5426e230ff82eaa82434526 100644
--- a/Source/bindings/dart/scripts/code_generator_dart.py
+++ b/Source/bindings/dart/scripts/code_generator_dart.py
@@ -129,6 +129,9 @@ class CodeGeneratorDart(object):
only_if_changed):
"""Returns .h/.cpp code as (header_text, cpp_text)."""
+ IdlType.set_enums((enum.name, enum.values)
+ for enum in definitions.enumerations.values())
+
if interface_name in definitions.interfaces:
interface = definitions.interfaces[interface_name]
elif interface_name in definitions.dictionaries:
@@ -150,8 +153,6 @@ class CodeGeneratorDart(object):
# Set local type info
IdlType.set_callback_functions(definitions.callback_functions.keys())
- IdlType.set_enums((enum.name, enum.values)
- for enum in definitions.enumerations.values())
# Select appropriate Jinja template and contents function
if interface.is_callback:
« no previous file with comments | « Source/bindings/core/idl.gypi ('k') | Source/bindings/dart/scripts/dart_utilities.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698