Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1181603004: Add AnalysisContext.onResultComputed(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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];
« pkg/analyzer/lib/src/generated/engine.dart ('K') | « pkg/analyzer/test/src/context/context_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698