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; |