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

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

Issue 1772923002: Add an analyzer_cli option to disable analysis (for faster summary generation) (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/package_analyzer.dart » ('j') | 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 732fc635ebb5d74be08b5d72d67636e55d920acb..111650e425881dc5b4a966ee153426b193d6f3a4 100644
--- a/pkg/analyzer_cli/lib/src/options.dart
+++ b/pkg/analyzer_cli/lib/src/options.dart
@@ -86,6 +86,9 @@ class CommandLineOptions {
/// Mapping of package names to package summary file paths.
final Map<String, String> packageSummaryInputs;
+ /// Whether to skip analysis when creating summaries.
+ final bool packageSummaryOnly;
+
/// The path to find the package summary.
final String packageSummaryOutput;
@@ -138,6 +141,7 @@ class CommandLineOptions {
packageModePath = args['package-mode-path'],
packageName = args['package-name'],
packageSummaryInputs = _parsePackageSummaryInputs(args),
+ packageSummaryOnly = args['package-summary-only'],
packageSummaryOutput = args['package-summary-output'],
packageConfigPath = args['packages'],
packageRootPath = args['package-root'],
@@ -313,6 +317,11 @@ class CommandLineOptions {
help: 'Specifies the path to the file where the summary information '
'about the package should be written to.',
hide: true)
+ ..addFlag('package-summary-only',
+ help: 'Disable analysis (only generate summaries).',
+ defaultsTo: false,
+ negatable: false,
+ hide: true)
//
// Hidden flags.
//
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/package_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698