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

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

Issue 9500012: Get rid of GetIDLTypeInfoByName. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « no previous file | client/dom/scripts/systemnative.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/generator.py
diff --git a/client/dom/scripts/generator.py b/client/dom/scripts/generator.py
index 2a678ba393342a5a2d23c53aa3d0ac5fd32aa76b..0a257f4b417762dcc7d0e26631bca0ffcad6e43b 100644
--- a/client/dom/scripts/generator.py
+++ b/client/dom/scripts/generator.py
@@ -228,8 +228,8 @@ def MatchSourceFilter(filter, thing):
def DartType(idl_type_name):
match = re.match(r'sequence<(\w*)>$', idl_type_name)
if match:
- return 'List<%s>' % GetIDLTypeInfoByName(match.group(1)).dart_type()
- return GetIDLTypeInfoByName(idl_type_name).dart_type()
+ return 'List<%s>' % GetIDLTypeInfo(match.group(1)).dart_type()
+ return GetIDLTypeInfo(idl_type_name).dart_type()
# Given a list of overloaded arguments, render a dart argument.
def _DartArg(args, interface):
@@ -626,8 +626,5 @@ _idl_type_registry = {
'SVGTransformList': SVGTearOffIDLTypeInfo('SVGTransformList', native_type='SVGTransformListPropertyTearOff', ref_counted=False)
}
-def GetIDLTypeInfo(idl_type):
- return GetIDLTypeInfoByName(idl_type.id)
-
-def GetIDLTypeInfoByName(idl_type_name):
+def GetIDLTypeInfo(idl_type_name):
return _idl_type_registry.get(idl_type_name, IDLTypeInfo(idl_type_name))
« no previous file with comments | « no previous file | client/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698