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

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

Issue 589253002: Revert "Chrome 38 script changes from integration branch" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/idlnode.py
diff --git a/tools/dom/scripts/idlnode.py b/tools/dom/scripts/idlnode.py
index fff5e34b50d7d56aeed8f28c25248d8a44129109..efe0bf102150f4497f7f8ca296fdb284d2a23d7d 100755
--- a/tools/dom/scripts/idlnode.py
+++ b/tools/dom/scripts/idlnode.py
@@ -7,7 +7,7 @@ import os
import sys
import idl_definitions
-from idl_types import IdlType, IdlUnionType, IdlArrayOrSequenceType
+from idl_types import IdlType, IdlUnionType
from compute_interfaces_info_overall import interfaces_info
@@ -547,7 +547,7 @@ class IDLType(IDLNode):
self.id = ast
# New blink handling.
elif ast.__module__ == "idl_types":
- if isinstance(ast, IdlType) or isinstance(ast, IdlArrayOrSequenceType):
+ if isinstance(ast, IdlType):
type_name = str(ast)
# TODO(terry): For now don't handle unrestricted types see
@@ -560,8 +560,7 @@ class IDLType(IDLNode):
self.id = type_name
else:
# IdlUnionType
- if ast.is_union_type:
- print 'WARNING type %s is union mapped to \'any\'' % self.id
+ assert ast.is_union_type
# TODO(terry): For union types use any otherwise type is unionType is
# not found and is removed during merging.
self.id = 'any'
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698