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 d46d3f531c61a47699b49c67bed7c2d7a639d084..aef22111d8cbe946c402a312bee5ee65989d2140 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -373,8 +373,10 @@ class Driver implements CommandLineStarter { |
UriResolver packageUriResolver; |
if (options.packageRootPath != null) { |
- ContextBuilder builder = new ContextBuilder(resourceProvider, null, null); |
- builder.defaultPackagesDirectoryPath = options.packageRootPath; |
+ ContextBuilderOptions builderOptions = new ContextBuilderOptions(); |
+ builderOptions.defaultPackagesDirectoryPath = options.packageRootPath; |
+ ContextBuilder builder = new ContextBuilder(resourceProvider, null, null, |
+ options: builderOptions); |
packageUriResolver = new PackageMapUriResolver(resourceProvider, |
builder.convertPackagesToMap(builder.createPackageMap(''))); |
} else if (options.packageConfigPath == null) { |