Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index bc7dfe0e3982787e6b721aac2a3806c6eb67e300..ad93a0f9026008265afa2bc8dc8cc67e87b40cd7 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -1847,6 +1847,14 @@ class _CompilerResolution implements Resolution { |
} |
@override |
+ void ensureResolved(Element element) { |
+ if (compiler.serialization.isDeserialized(element)) { |
+ return; |
+ } |
+ computeWorldImpact(element); |
+ } |
+ |
+ @override |
bool hasResolvedAst(Element element) { |
assert(invariant(element, element.isDeclaration, |
message: "Element $element must be the declaration.")); |
@@ -1875,6 +1883,12 @@ class _CompilerResolution implements Resolution { |
} |
@override |
+ ResolvedAst computeResolvedAst(Element element) { |
+ ensureResolved(element); |
+ return getResolvedAst(element); |
+ } |
+ |
+ @override |
bool hasResolutionImpact(Element element) { |
assert(invariant(element, element.isDeclaration, |
message: "Element $element must be the declaration.")); |