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

Unified Diff: pkg/analyzer/test/src/context/abstract_context.dart

Issue 2226613004: Suppress follow-on errors when a file is imported with either a prefix or a show clause (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cache URI existence in a modifier' Created 4 years, 4 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/context/abstract_context.dart
diff --git a/pkg/analyzer/test/src/context/abstract_context.dart b/pkg/analyzer/test/src/context/abstract_context.dart
index be85eff96d447c1e3e1db1bdd20c973cc4532701..ba11f84eaa45ce88aa72eb021aea82228fb6b5b4 100644
--- a/pkg/analyzer/test/src/context/abstract_context.dart
+++ b/pkg/analyzer/test/src/context/abstract_context.dart
@@ -123,7 +123,7 @@ class AbstractContextTest {
return new AnalysisContextImpl();
}
- DartSdk createDartSdk() => new MockSdk();
+ DartSdk createDartSdk() => new MockSdk(resourceProvider: resourceProvider);
Source newSource(String path, [String content = '']) {
File file = resourceProvider.newFile(path, content);
@@ -143,8 +143,8 @@ class AbstractContextTest {
sdk = createDartSdk();
sdkResolver = new DartUriResolver(sdk);
resourceResolver = new ResourceUriResolver(resourceProvider);
- sourceFactory =
- new SourceFactory(<UriResolver>[sdkResolver, resourceResolver]);
+ sourceFactory = new SourceFactory(
+ <UriResolver>[sdkResolver, resourceResolver], null, resourceProvider);
context = createAnalysisContext();
if (options != null) {
context.analysisOptions = options;

Powered by Google App Engine
This is Rietveld 408576698