Index: pkg/analyzer/test/src/dart/constant/evaluation_test.dart |
diff --git a/pkg/analyzer/test/src/dart/constant/evaluation_test.dart b/pkg/analyzer/test/src/dart/constant/evaluation_test.dart |
index 960726e8c87407133918cd0f8ce6e7ff370903b2..cf6d9cd103fbad991e4f4fdba77b488156152ec8 100644 |
--- a/pkg/analyzer/test/src/dart/constant/evaluation_test.dart |
+++ b/pkg/analyzer/test/src/dart/constant/evaluation_test.dart |
@@ -275,7 +275,7 @@ class C { |
analysisContext.computeErrors(source); |
expect(unit, isNotNull); |
ConstantValueComputer computer = _makeConstantValueComputer(); |
- computer.add(unit, source, source); |
+ computer.add(unit); |
computer.computeValues(); |
NodeList<CompilationUnitMember> members = unit.declarations; |
expect(members, hasLength(3)); |
@@ -296,7 +296,7 @@ const int a = 0;'''); |
analysisContext.resolveCompilationUnit(source, libraryElement); |
expect(unit, isNotNull); |
ConstantValueComputer computer = _makeConstantValueComputer(); |
- computer.add(unit, source, source); |
+ computer.add(unit); |
computer.computeValues(); |
NodeList<CompilationUnitMember> members = unit.declarations; |
expect(members, hasLength(2)); |
@@ -331,8 +331,8 @@ const int d = c;'''); |
analysisContext.resolveCompilationUnit(partSource, libraryElement); |
expect(partUnit, isNotNull); |
ConstantValueComputer computer = _makeConstantValueComputer(); |
- computer.add(libraryUnit, librarySource, librarySource); |
- computer.add(partUnit, partSource, librarySource); |
+ computer.add(libraryUnit); |
+ computer.add(partUnit); |
computer.computeValues(); |
NodeList<CompilationUnitMember> libraryMembers = libraryUnit.declarations; |
expect(libraryMembers, hasLength(2)); |
@@ -353,7 +353,7 @@ const int d = c;'''); |
analysisContext.resolveCompilationUnit(source, libraryElement); |
expect(unit, isNotNull); |
ConstantValueComputer computer = _makeConstantValueComputer(); |
- computer.add(unit, source, source); |
+ computer.add(unit); |
computer.computeValues(); |
NodeList<CompilationUnitMember> members = unit.declarations; |
expect(members, hasLength(1)); |
@@ -370,7 +370,7 @@ const E e = E.id0; |
analysisContext.resolveCompilationUnit(source, libraryElement); |
expect(unit, isNotNull); |
ConstantValueComputer computer = _makeConstantValueComputer(); |
- computer.add(unit, source, source); |
+ computer.add(unit); |
computer.computeValues(); |
TopLevelVariableDeclaration declaration = unit.declarations |
.firstWhere((member) => member is TopLevelVariableDeclaration); |
@@ -1200,7 +1200,7 @@ const A a = const A(); |
analysisContext.resolveCompilationUnit(source, element); |
expect(unit, isNotNull); |
ConstantValueComputer computer = _makeConstantValueComputer(); |
- computer.add(unit, source, source); |
+ computer.add(unit); |
computer.computeValues(); |
assertErrors(source, expectedErrorCodes); |
} |
@@ -1380,7 +1380,6 @@ class A { |
ConstantEvaluationValidator_ForTest validator = |
new ConstantEvaluationValidator_ForTest(analysisContext2); |
validator.computer = new ConstantValueComputer( |
- analysisContext2, |
analysisContext2.typeProvider, |
analysisContext2.declaredVariables, |
validator, |