Index: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
index be05e164d98b734fc6aabce9da1e3cab52b32ab6..94fccf2244245ac53c77a4cc689a11e787c1cf4a 100644 |
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
@@ -39,6 +39,7 @@ class ModelEmitter { |
final Namer namer; |
ConstantEmitter constantEmitter; |
final NativeEmitter nativeEmitter; |
+ final InterceptorData _interceptorData; |
JavaScriptBackend get backend => compiler.backend; |
@@ -50,17 +51,12 @@ class ModelEmitter { |
static const String typeNameProperty = r"builtin$cls"; |
- ModelEmitter(Compiler compiler, Namer namer, this.nativeEmitter) |
- : this.compiler = compiler, |
- this.namer = namer { |
+ ModelEmitter( |
+ this.compiler, this.namer, this.nativeEmitter, this._interceptorData) { |
this.constantEmitter = new ConstantEmitter( |
compiler, namer, this.generateConstantReference, constantListGenerator); |
} |
- InterceptorData get _interceptorData => |
- // TODO(johnniwinther): Pass [InterceptorData] directly? |
- nativeEmitter.interceptorData; |
- |
js.Expression constantListGenerator(js.Expression array) { |
// TODO(floitsch): remove hard-coded name. |
return js.js('makeConstList(#)', [array]); |