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

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

Issue 9117013: Refresh dart:dom from WebKit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « client/dom/idl/dart/dart.idl ('k') | client/dom/scripts/idlnode.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/dartgenerator.py
diff --git a/client/dom/scripts/dartgenerator.py b/client/dom/scripts/dartgenerator.py
index 6fb73267d38b300513a086a135ad9c1d9e0a1810..c155fce3c600a10a676a71dc9bda08e584b34817 100755
--- a/client/dom/scripts/dartgenerator.py
+++ b/client/dom/scripts/dartgenerator.py
@@ -18,6 +18,7 @@ _logger = logging.getLogger('dartgenerator')
# IDL->Dart primitive types conversion.
_idl_to_dart_type_conversions = {
'any': 'Object',
+ 'any[]': 'List',
'custom': 'Dynamic',
'boolean': 'bool',
'DOMObject': 'Object',
@@ -1726,7 +1727,8 @@ class WrappingInterfaceGenerator(object):
return '%s is %s' % (name, type)
if position == len(info.arg_infos):
- assert len(overloads) == 1
+ if len(overloads) > 1:
+ raise Exception('Duplicate operations ' + str(overloads))
operation = overloads[0]
self.GenerateSingleOperation(emitter, info, indent, operation)
return False
« no previous file with comments | « client/dom/idl/dart/dart.idl ('k') | client/dom/scripts/idlnode.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698