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

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

Issue 2350963005: Fix generation of analysis results in analyzer_cli "build mode". (Closed)
Patch Set: Created 4 years, 3 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 8992a10dcb228c69b4ae4e031bd280d770494eb1..700e79710886282aa35e6a88d25c34e1af106676 100644
--- a/pkg/analyzer_cli/lib/src/build_mode.dart
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart
@@ -253,7 +253,7 @@ class BuildMode {
resourceProvider.getFolder(options.dartSdkPath), options.strongMode);
dartSdk.analysisOptions =
Driver.createAnalysisOptionsForCommandLineOptions(options);
- dartSdk.useSummary = false;
+ dartSdk.useSummary = !options.buildSummaryOnly;
sdk = dartSdk;
sdkBundle = dartSdk.getSummarySdkBundle(options.strongMode);
}
@@ -276,6 +276,13 @@ class BuildMode {
contextOptions.analyzeFunctionBodies = false;
}
});
+
+ if (!options.buildSummaryOnly) {
+ // 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