Index: pkg/compiler/lib/src/compile_time_constants.dart |
diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart |
index 59166a090a68ca2edfd71bd3610b9462d2f9c00f..a9a97ca399831289ca3673a894c0900738a1e91e 100644 |
--- a/pkg/compiler/lib/src/compile_time_constants.dart |
+++ b/pkg/compiler/lib/src/compile_time_constants.dart |
@@ -1265,9 +1265,10 @@ class ErroneousAstConstant extends AstConstant { |
new ErroneousConstantExpression(), new NullConstantValue()); |
} |
-// TODO(johnniwinther): Clean this up. |
+// TODO(johnniwinther): Avoid the need for this hack. |
TreeElements _analyzeElementEagerly(Compiler compiler, AstElement element) { |
- compiler.resolution.analyzeElement(element.declaration); |
+ WorldImpact worldImpact = compiler.analyzeElement(element.declaration); |
+ compiler.enqueuer.resolution.applyImpact(element.declaration, worldImpact); |
return element.resolvedAst.elements; |
} |