Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index 7f7a37f4cda11ceff98e2fa204c56b9df0f6aad8..f44ab1381ba80d6ac927bb008254799cbcadcceb 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -2022,13 +2022,20 @@ class _CompilerResolution implements Resolution { |
// Only analyze nodes with a corresponding [TreeElements]. |
compiler.checker.check(element); |
} |
- WorldImpact worldImpact = compiler.backend.impactTransformer |
- .transformResolutionImpact(resolutionImpact); |
- return worldImpact; |
+ return transformResolutionImpact(element, resolutionImpact); |
}); |
} |
@override |
+ WorldImpact transformResolutionImpact( |
+ Element element, ResolutionImpact resolutionImpact) { |
+ WorldImpact worldImpact = compiler.backend.impactTransformer |
+ .transformResolutionImpact(resolutionImpact); |
+ _worldImpactCache[element] = worldImpact; |
+ return worldImpact; |
+ } |
+ |
+ @override |
void uncacheWorldImpact(Element element) { |
assert(invariant(element, element.isDeclaration, |
message: "Element $element must be the declaration.")); |