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

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

Issue 2425423009: Split out options from ContextBuilder (Closed)
Patch Set: Created 4 years, 2 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 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) {
« no previous file with comments | « pkg/analyzer/tool/task_dependency_graph/generate.dart ('k') | pkg/dev_compiler/lib/src/analyzer/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698