Index: lib/dom/scripts/systembase.py |
diff --git a/lib/dom/scripts/systembase.py b/lib/dom/scripts/systembase.py |
index 0ce588d0b1e2a1b8ec2e6303b24a1f79ac6a1e9f..68e03bf8393824dce6688b88cb37741575cd3743 100644 |
--- a/lib/dom/scripts/systembase.py |
+++ b/lib/dom/scripts/systembase.py |
@@ -56,8 +56,8 @@ class System(object): |
code.Emit(self._templates.Load('callback.darttemplate')) |
code.Emit('typedef $TYPE $NAME($PARAMS);\n', |
NAME=interface.id, |
- TYPE=info.type_name, |
- PARAMS=info.ParametersImplementationDeclaration()) |
+ TYPE=DartType(info.type_name), |
+ PARAMS=info.ParametersImplementationDeclaration(DartType)) |
def _GenerateLibFile(self, lib_template, lib_file_path, file_paths, |
@@ -222,6 +222,10 @@ class BaseGenerator(object): |
walk(interface.parents[1:]) |
return result |
+ def _DartType(self, type_name): |
+ return self._system._type_registry.DartType(type_name) |
+ |
+ |
class GeneratorContext(object): |
def __init__(self, templates, database, emitters, type_registry, output_dir): |
self.templates = templates |