Index: pkg/compiler/lib/src/js_backend/constant_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
index 31bcccb9c0971aedf79d8526944f2af21ce27a68..a70a3dfe1fb5aa7608358c5188dba2d37ce9a926 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
@@ -33,8 +33,8 @@ class ConstantEmitter implements ConstantValueVisitor<jsAst.Expression, Null> { |
final Compiler compiler; |
final Namer namer; |
- final _ConstantReferenceGenerator constantReferenceGenerator; |
- final _ConstantListGenerator makeConstantList; |
+ final jsAst.Expression<-ConstantValue constantReferenceGenerator; |
+ final jsAst.Expression <- (jsAst.Expression array) makeConstantList; |
/** |
* The given [constantReferenceGenerator] function must, when invoked with a |
@@ -44,7 +44,7 @@ class ConstantEmitter implements ConstantValueVisitor<jsAst.Expression, Null> { |
ConstantEmitter( |
this.compiler, |
this.namer, |
- jsAst.Expression this.constantReferenceGenerator(ConstantValue constant), |
+ jsAst.Expression<-ConstantValue this.constantReferenceGenerator, |
this.makeConstantList); |
DiagnosticReporter get reporter => compiler.reporter; |