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

Unified Diff: lib/src/driver.dart

Issue 1375643003: Remove outmoded --url-mapping option. (Closed) Base URL: https://github.com/dart-lang/analyzer_cli.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/driver.dart
diff --git a/lib/src/driver.dart b/lib/src/driver.dart
index bd740c8eaf48ffb645a9009e40b0a10685e7c693..223db84b0596ff8cb50607d428c7808d51c6bf0a 100644
--- a/lib/src/driver.dart
+++ b/lib/src/driver.dart
@@ -209,10 +209,6 @@ class Driver {
return false;
}
if (!_equalMaps(
- options.customUrlMappings, _previousOptions.customUrlMappings)) {
- return false;
- }
- if (!_equalMaps(
options.definedVariables, _previousOptions.definedVariables)) {
return false;
}
@@ -296,8 +292,7 @@ class Driver {
/// Decide on the appropriate method for resolving URIs based on the given
/// [options] and [customUrlMappings] settings, and return a
/// [SourceFactory] that has been configured accordingly.
- SourceFactory _chooseUriResolutionPolicy(
- CommandLineOptions options, Map<String, String> customUrlMappings) {
+ SourceFactory _chooseUriResolutionPolicy(CommandLineOptions options) {
Packages packages;
Map<String, List<fileSystem.Folder>> packageMap;
UriResolver packageUriResolver;
@@ -352,11 +347,8 @@ class Driver {
// Now, build our resolver list.
- // Custom and 'dart:' URIs come first.
- List<UriResolver> resolvers = [
- new CustomUriResolver(customUrlMappings),
- new DartUriResolver(sdk)
- ];
+ // 'dart:' URIs come first.
+ List<UriResolver> resolvers = [new DartUriResolver(sdk)];
// Next SdkExts.
if (packageMap != null) {
@@ -401,8 +393,7 @@ class Driver {
_previousOptions = options;
// Choose a package resolution policy and a diet parsing policy based on
// the command-line options.
- SourceFactory sourceFactory =
- _chooseUriResolutionPolicy(options, options.customUrlMappings);
+ SourceFactory sourceFactory = _chooseUriResolutionPolicy(options);
AnalyzeFunctionBodiesPredicate dietParsingPolicy =
_chooseDietParsingPolicy(options);
// Create a context using these policies.
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698