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

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

Issue 10584031: Proper support for IDL arrays in generators. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Next iteration Created 8 years, 6 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: lib/dom/scripts/dartgenerator.py
diff --git a/lib/dom/scripts/dartgenerator.py b/lib/dom/scripts/dartgenerator.py
index 23ffa82e0f114056c9063bb12eec98d2c3ad6dca..333aa5a1aac0747e2398a77236cbd4c04aeac047 100755
--- a/lib/dom/scripts/dartgenerator.py
+++ b/lib/dom/scripts/dartgenerator.py
@@ -38,6 +38,9 @@ class DartGenerator(object):
if IsPrimitiveType(type_name):
return True
+ if type_name.endswith('[]'):
+ return self._IsCompoundType(database, type_name[:-len('[]')])
+
striped_type_name = self._StripModules(type_name)
if database.HasInterface(striped_type_name):
return True

Powered by Google App Engine
This is Rietveld 408576698