| Index: pkg/analyzer/test/generated/all_the_rest_test.dart
|
| diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
|
| index e18958753182df55b8560633d5698382e09c03d5..4f77ce7b2eef1cd36264dec0157ac9fe4304bcb4 100644
|
| --- a/pkg/analyzer/test/generated/all_the_rest_test.dart
|
| +++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
|
| @@ -931,10 +931,11 @@ class ConstantFinderTest extends EngineTestCase {
|
| return constructorInvocations;
|
| }
|
|
|
| - Map<VariableElement, VariableDeclaration> _findVariableDeclarations() {
|
| + Map<PotentiallyConstVariableElementImpl, VariableDeclaration> _findVariableDeclarations() {
|
| ConstantFinder finder = new ConstantFinder();
|
| _node.accept(finder);
|
| - Map<VariableElement, VariableDeclaration> variableMap = finder.variableMap;
|
| + Map<PotentiallyConstVariableElementImpl, VariableDeclaration> variableMap =
|
| + finder.variableMap;
|
| expect(variableMap, isNotNull);
|
| return variableMap;
|
| }
|
| @@ -7848,7 +7849,7 @@ class MockDartSdk implements DartSdk {
|
| @reflectiveTest
|
| class ReferenceFinderTest extends EngineTestCase {
|
| DirectedGraph<AstNode> _referenceGraph;
|
| - Map<VariableElement, VariableDeclaration> _variableDeclarationMap;
|
| + Map<PotentiallyConstVariableElementImpl, VariableDeclaration> _variableDeclarationMap;
|
| Map<ConstructorElement, ConstructorDeclaration> _constructorDeclarationMap;
|
| VariableDeclaration _head;
|
| AstNode _tail;
|
| @@ -7856,7 +7857,7 @@ class ReferenceFinderTest extends EngineTestCase {
|
| void setUp() {
|
| _referenceGraph = new DirectedGraph<AstNode>();
|
| _variableDeclarationMap =
|
| - new HashMap<VariableElement, VariableDeclaration>();
|
| + new HashMap<PotentiallyConstVariableElementImpl, VariableDeclaration>();
|
| _constructorDeclarationMap =
|
| new HashMap<ConstructorElement, ConstructorDeclaration>();
|
| _head = AstFactory.variableDeclaration("v1");
|
| @@ -7979,8 +7980,8 @@ class ReferenceFinderTest extends EngineTestCase {
|
| VariableDeclaration variableDeclaration =
|
| AstFactory.variableDeclaration(name);
|
| _tail = variableDeclaration;
|
| - VariableElementImpl variableElement =
|
| - ElementFactory.localVariableElement2(name);
|
| + ConstLocalVariableElementImpl variableElement =
|
| + ElementFactory.constLocalVariableElement2(name);
|
| variableElement.const3 = isConst;
|
| AstFactory.variableDeclarationList2(
|
| isConst ? Keyword.CONST : Keyword.VAR, [variableDeclaration]);
|
|
|