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

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

Issue 1830733004: Add --build-summary-only-diet option. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/options.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 a2c921881175b9269f0c1886bb6a985b612e4703..4111aefabb9099319a2c76f03f12da700d6735ea 100644
--- a/pkg/analyzer_cli/lib/src/build_mode.dart
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart
@@ -145,7 +145,11 @@ class BuildMode {
// Set context options.
Driver.setAnalysisContextOptions(
- context, options, (AnalysisOptionsImpl contextOptions) {});
+ context, options, (AnalysisOptionsImpl contextOptions) {
+ if (options.buildSummaryOnlyDiet) {
+ contextOptions.analyzeFunctionBodies = false;
+ }
+ });
// Configure using summaries.
context.typeProvider = sdk.context.typeProvider;
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698