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

Unified Diff: pkg/analyzer/test/generated/incremental_resolver_test.dart

Issue 1183723002: Explicitly compute library errors in tests. (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/generated/incremental_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
index 735a88206ad34d6af99580e5d2e256e574feac06..54bb524d2e57997f6d5ba9302997cb6451814fdd 100644
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
@@ -2447,7 +2447,7 @@ class B extends Object with A {}
void _assertMatchKind(
DeclarationMatchKind expectMatch, String oldContent, String newContent) {
Source source = addSource(oldContent);
- LibraryElement library = resolve(source);
+ LibraryElement library = resolve2(source);
CompilationUnit oldUnit = resolveCompilationUnit(source, library);
// parse
CompilationUnit newUnit = ParserTestCase.parseCompilationUnit(newContent);
@@ -2824,7 +2824,7 @@ class B {
{
source = addSource(newCode);
_runTasks();
- LibraryElement library = resolve(source);
+ LibraryElement library = resolve2(source);
fullNewUnit = resolveCompilationUnit(source, library);
}
try {
@@ -2843,7 +2843,7 @@ class B {
void _resolveUnit(String code) {
this.code = code;
source = addSource(code);
- library = resolve(source);
+ library = resolve2(source);
unit = resolveCompilationUnit(source, library);
_runTasks();
}
@@ -3868,7 +3868,7 @@ f3() {
void _resolveUnit(String code) {
this.code = code;
source = addSource(code);
- oldLibrary = resolve(source);
+ oldLibrary = resolve2(source);
oldUnit = resolveCompilationUnit(source, oldLibrary);
oldUnitElement = oldUnit.element;
}
@@ -3908,7 +3908,7 @@ f3() {
source = addSource(newCode + ' ');
source = addSource(newCode);
_runTasks();
- LibraryElement library = resolve(source);
+ LibraryElement library = resolve2(source);
CompilationUnit fullNewUnit = resolveCompilationUnit(source, library);
// Validate tokens.
_assertEqualTokens(newUnit, fullNewUnit);

Powered by Google App Engine
This is Rietveld 408576698