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)) |