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

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

Issue 2976683002: Refactor creating AnalysisOptionsImpl and declared variables. (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | pkg/analyzer_cli/lib/src/driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/build_mode.dart
diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart
index 869a87e93c06f226e8bc9057f51099d1bbc98f53..f5c3b1f95b3e8d0a803fd98f02e51b6681f4394f 100644
--- a/pkg/analyzer_cli/lib/src/build_mode.dart
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart
@@ -325,7 +325,10 @@ class BuildMode {
]);
// Set context options.
- Driver.setAnalysisContextOptions(resourceProvider, context, options);
+ Driver.declareVariables(context.declaredVariables, options);
+ AnalysisOptionsImpl analysisOptions = Driver
+ .createAnalysisOptionsForCommandLineOptions(resourceProvider, options);
+ context.analysisOptions = analysisOptions;
if (!options.buildSummaryOnly) {
// Configure using summaries.
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698