Index: pkg/analyzer/lib/src/task/dart.dart |
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart |
index 4dde93d09a6e0d4e3cd3ad6d340bf7f17321b50b..bacd2835ebbd9da3fcd08f25d70e88b7002c2975 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -1102,8 +1102,7 @@ class BuildCompilationUnitElementTask extends SourceBasedAnalysisTask { |
// |
// Prepare constants. |
// |
- ConstantFinder constantFinder = |
- new ConstantFinder(context, source, librarySpecificUnit.library); |
+ ConstantFinder constantFinder = new ConstantFinder(); |
unit.accept(constantFinder); |
List<ConstantEvaluationTarget> constants = |
new List<ConstantEvaluationTarget>.from( |