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

Unified Diff: tools/dom/scripts/dartgenerator.py

Issue 13704011: Map enums to strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « tests/html/xhr_test.dart ('k') | tools/dom/scripts/database.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartgenerator.py
diff --git a/tools/dom/scripts/dartgenerator.py b/tools/dom/scripts/dartgenerator.py
index 12c9c83230fa2aa7bb11d60d1e032c4efddd3cca..fdac363518c8b48a7f918e11d908944335e11d5c 100755
--- a/tools/dom/scripts/dartgenerator.py
+++ b/tools/dom/scripts/dartgenerator.py
@@ -47,6 +47,9 @@ class DartGenerator(object):
if database.HasInterface(stripped_type_name):
return True
+ if database.HasEnum(stripped_type_name):
+ return True
+
dart_template_match = self._dart_templates_re.match(type_name)
if dart_template_match:
# Dart templates
« no previous file with comments | « tests/html/xhr_test.dart ('k') | tools/dom/scripts/database.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698