Index: pkg/analyzer/test/src/task/dart_test.dart |
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart |
index 2a9fca8309b6a3ba13300eb33bfca39d6518b2f5..49e88ff25009579c86d0bc41360d9d0a5081e101 100644 |
--- a/pkg/analyzer/test/src/task/dart_test.dart |
+++ b/pkg/analyzer/test/src/task/dart_test.dart |
@@ -2384,15 +2384,15 @@ main(A a) { |
'''); |
LibrarySpecificUnit target = new LibrarySpecificUnit(source, source); |
// prepare unit and "a.m()" invocation |
- _computeResult(target, RESOLVED_UNIT6); |
- CompilationUnit unit = outputs[RESOLVED_UNIT6]; |
+ _computeResult(target, RESOLVED_UNIT_NO_CONSTANTS); |
+ CompilationUnit unit = outputs[RESOLVED_UNIT_NO_CONSTANTS]; |
// walk the AST |
FunctionDeclaration function = unit.declarations[1]; |
BlockFunctionBody body = function.functionExpression.body; |
ExpressionStatement statement = body.block.statements[0]; |
MethodInvocation invocation = statement.expression; |
expect(task, new isInstanceOf<ResolveUnitReferencesTask>()); |
- expect(unit, same(outputs[RESOLVED_UNIT6])); |
+ expect(unit, same(outputs[RESOLVED_UNIT_NO_CONSTANTS])); |
// a.m() is resolved now |
expect(invocation.methodName.staticElement, isNotNull); |
} |
@@ -2406,7 +2406,7 @@ main(A a) { |
} |
'''); |
LibrarySpecificUnit target = new LibrarySpecificUnit(source, source); |
- _computeResult(target, RESOLVED_UNIT6); |
+ _computeResult(target, RESOLVED_UNIT_NO_CONSTANTS); |
expect(task, new isInstanceOf<ResolveUnitReferencesTask>()); |
// validate |
_fillErrorListener(RESOLVE_REFERENCES_ERRORS); |
@@ -2432,10 +2432,11 @@ main() { |
new A<int>().m(); |
} |
'''); |
- _computeResult(new LibrarySpecificUnit(sourceC, sourceC), RESOLVED_UNIT6); |
+ _computeResult( |
+ new LibrarySpecificUnit(sourceC, sourceC), RESOLVED_UNIT_NO_CONSTANTS); |
expect(task, new isInstanceOf<ResolveUnitReferencesTask>()); |
// validate |
- CompilationUnit unit = outputs[RESOLVED_UNIT6]; |
+ CompilationUnit unit = outputs[RESOLVED_UNIT_NO_CONSTANTS]; |
expect(unit, isNotNull); |
{ |
FunctionDeclaration functionDeclaration = unit.declarations[0]; |