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

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

Issue 2836873005: Add support for unlinked summary inputs through --build-summary-unlinked-input (Closed)
Patch Set: rebase Created 3 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 | « pkg/analyzer_cli/lib/src/build_mode.dart ('k') | 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/options.dart
diff --git a/pkg/analyzer_cli/lib/src/options.dart b/pkg/analyzer_cli/lib/src/options.dart
index 4e434ce36cdbb393555ca7385e9fa3041e7c1503..7e8b9cbb5269cfad824d05dfdab572fdaf7e034d 100644
--- a/pkg/analyzer_cli/lib/src/options.dart
+++ b/pkg/analyzer_cli/lib/src/options.dart
@@ -50,6 +50,9 @@ class CommandLineOptions {
/// List of summary file paths to use in build mode.
final List<String> buildSummaryInputs;
+ /// List of unlinked summary file paths to use in build mode.
+ final List<String> buildSummaryUnlinkedInputs;
+
/// Whether to skip analysis when creating summaries in build mode.
final bool buildSummaryOnly;
@@ -159,6 +162,8 @@ class CommandLineOptions {
buildMode = args['build-mode'],
buildModePersistentWorker = args['persistent_worker'],
buildSummaryInputs = args['build-summary-input'] as List<String>,
+ buildSummaryUnlinkedInputs =
+ args['build-summary-unlinked-input'] as List<String>,
buildSummaryOnly = args['build-summary-only'],
buildSummaryOnlyDiet = args['build-summary-only-diet'],
buildSummaryOnlyUnlinked = args['build-summary-only-unlinked'],
@@ -278,7 +283,8 @@ class CommandLineOptions {
'together with --build-summary-only.');
return null; // Only reachable in testing.
}
- if (options.buildSummaryInputs.isNotEmpty) {
+ if (options.buildSummaryInputs.isNotEmpty ||
+ options.buildSummaryUnlinkedInputs.isNotEmpty) {
printAndFail('No summaries should be provided in combination with '
'--build-summary-only-unlinked, they aren\'t needed.');
return null; // Only reachable in testing.
@@ -384,8 +390,13 @@ class CommandLineOptions {
negatable: false,
hide: hide)
..addOption('build-summary-input',
- help: 'Path to a summary file that contains information from a '
- 'previous analysis run; may be specified multiple times.',
+ help: 'Path to a linked summary file that contains information from '
+ 'a previous analysis run; may be specified multiple times.',
+ allowMultiple: true,
+ hide: hide)
+ ..addOption('build-summary-unlinked-input',
+ help: 'Path to an unlinked summary file that contains information '
+ 'from a previous analysis run; may be specified multiple times.',
allowMultiple: true,
hide: hide)
..addOption('build-summary-output',
« no previous file with comments | « pkg/analyzer_cli/lib/src/build_mode.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698