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

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

Issue 16308002: Fixes for Blink roll to r151189 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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: tools/dom/scripts/idlparser.py
diff --git a/tools/dom/scripts/idlparser.py b/tools/dom/scripts/idlparser.py
index 3142118cb413d881ab78ff5408f7a6c9be5972fb..7016f4d136a43a9c791aa99275166b5eee607018 100755
--- a/tools/dom/scripts/idlparser.py
+++ b/tools/dom/scripts/idlparser.py
@@ -263,8 +263,11 @@ class IDLParser(object):
def Type():
return _Type
+ def UnionType():
+ return ['(', Type, 'or', Type, ')']
+
def ReturnType():
- return OR(VoidType, _Type)
+ return OR(VoidType, _Type, UnionType)
def InterfaceType():
return ScopedName

Powered by Google App Engine
This is Rietveld 408576698