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

Unified Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 2060263006: Deprecate FileUriResolver and RelativeFileUriResolver in source_io.dart, replace the usages with Re… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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_cli/lib/src/driver.dart
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart
index a1160734abec7589f0af322fa6e6d2a072b88ee9..d705b23251350eb8a525099401f276189792ce0e 100644
--- a/pkg/analyzer_cli/lib/src/driver.dart
+++ b/pkg/analyzer_cli/lib/src/driver.dart
@@ -364,7 +364,7 @@ class Driver implements CommandLineStarter {
List<UriResolver> resolvers = <UriResolver>[
sdkResolver,
resolver,
- new FileUriResolver()
+ new file_system.ResourceUriResolver(PhysicalResourceProvider.INSTANCE)
];
return new SourceFactory(resolvers);
}
@@ -427,7 +427,8 @@ class Driver implements CommandLineStarter {
}
// Finally files.
- resolvers.add(new FileUriResolver());
+ resolvers.add(
+ new file_system.ResourceUriResolver(PhysicalResourceProvider.INSTANCE));
return new SourceFactory(resolvers, packageInfo.packages);
}
@@ -627,8 +628,8 @@ class Driver implements CommandLineStarter {
/// Analyze a single source.
ErrorSeverity _runAnalyzer(Source source, CommandLineOptions options) {
int startTime = currentTimeMillis();
- AnalyzerImpl analyzer =
- new AnalyzerImpl(_context, incrementalSession, source, options, stats, startTime);
+ AnalyzerImpl analyzer = new AnalyzerImpl(
+ _context, incrementalSession, source, options, stats, startTime);
var errorSeverity = analyzer.analyzeSync();
if (errorSeverity == ErrorSeverity.ERROR) {
exitCode = errorSeverity.ordinal;

Powered by Google App Engine
This is Rietveld 408576698