Index: pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
index 258315e0c10a462bb18a580714c81067f96d257a..ab86f5378cb8a0d0d92155e7a3a7ae04c677753e 100644 |
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart |
@@ -11,7 +11,7 @@ import '../../compiler.dart' show Compiler; |
import '../../constants/values.dart' show ConstantValue; |
import '../../deferred_load.dart' show OutputUnit; |
import '../../elements/elements.dart' |
- show ClassElement, Element, FieldElement, MethodElement; |
+ show ClassElement, Element, Entity, FieldElement, MethodElement; |
import '../../js/js.dart' as js; |
import '../../js_backend/js_backend.dart' show JavaScriptBackend, Namer; |
import '../../world.dart' show ClosedWorld; |
@@ -132,7 +132,7 @@ class Emitter implements emitterTask.Emitter { |
} |
@override |
- js.Expression typeAccess(Element element) { |
+ js.Expression typeAccess(Entity element) { |
// TODO(floitsch): minify 'ensureResolved'. |
// TODO(floitsch): don't emit `ensureResolved` for eager classes. |
return js.js('#.ensureResolved()', _globalPropertyAccess(element)); |