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

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

Issue 1882263002: Turn off summaries in context when building summary from AST. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | no next file » | 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 511c6c099ddb23d18eae2b513c724a92eaeb2252..e2a0da58bc816d309a170dc59878237a1d950957 100644
--- a/pkg/analyzer_cli/lib/src/build_mode.dart
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart
@@ -157,7 +157,7 @@ class BuildMode {
new DirectoryBasedDartSdk(new JavaFile(options.dartSdkPath));
sdk.analysisOptions =
Driver.createAnalysisOptionsForCommandLineOptions(options);
- sdk.useSummary = true;
+ sdk.useSummary = !options.buildSummaryOnlyAst;
// Read the summaries.
summaryDataStore = new SummaryDataStore(options.buildSummaryInputs);
@@ -183,10 +183,12 @@ class BuildMode {
}
});
- // Configure using summaries.
- context.typeProvider = sdk.context.typeProvider;
- context.resultProvider =
- new InputPackagesResultProvider(context, summaryDataStore);
+ if (!options.buildSummaryOnlyAst) {
+ // Configure using summaries.
+ context.typeProvider = sdk.context.typeProvider;
+ context.resultProvider =
+ new InputPackagesResultProvider(context, summaryDataStore);
+ }
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698