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 d6e78fc53e2a43e44b2eb06130bf2328a114ef0d..028382531edf3787bec07d826be0800871bc7ed0 100644 |
--- a/pkg/analyzer_cli/lib/src/options.dart |
+++ b/pkg/analyzer_cli/lib/src/options.dart |
@@ -49,6 +49,9 @@ class CommandLineOptions { |
/// analyze function bodies to use summaries during future compilation steps. |
final bool buildSummaryOnlyDiet; |
+ /// Whether to use exclude informative data from created summaries. |
+ final bool buildSummaryExcludeInformative; |
+ |
/// The path to output the summary when creating summaries in build mode. |
final String buildSummaryOutput; |
@@ -138,6 +141,8 @@ class CommandLineOptions { |
buildSummaryInputs = args['build-summary-input'], |
buildSummaryOnly = args['build-summary-only'], |
buildSummaryOnlyDiet = args['build-summary-only-diet'], |
+ buildSummaryExcludeInformative = |
+ args['build-summary-exclude-informative'], |
buildSummaryOutput = args['build-summary-output'], |
buildSuppressExitCode = args['build-suppress-exit-code'], |
dartSdkPath = args['dart-sdk'], |
@@ -346,6 +351,11 @@ class CommandLineOptions { |
defaultsTo: false, |
negatable: false, |
hide: true) |
+ ..addFlag('build-summary-exclude-informative', |
+ help: 'Exclude @informative information (docs, offsets, etc).', |
+ defaultsTo: false, |
+ negatable: false, |
+ hide: true) |
..addFlag('build-suppress-exit-code', |
help: 'Exit with code 0 even if errors are found.', |
defaultsTo: false, |