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 2003abf2dafa23fa4e405f98751f0e4a1672cabc..f1095ef7630cdf534b2f521733fc000a6651c7c5 100644 |
--- a/pkg/analyzer_cli/lib/src/options.dart |
+++ b/pkg/analyzer_cli/lib/src/options.dart |
@@ -45,6 +45,10 @@ class CommandLineOptions { |
/// Whether to skip analysis when creating summaries in build mode. |
final bool buildSummaryOnly; |
+ /// Whether to create summaries using only ASTs, i.e. don't perform |
+ /// resolution. |
+ final bool buildSummaryOnlyAst; |
+ |
/// Whether to use diet parsing, i.e. skip function bodies. We don't need to |
/// analyze function bodies to use summaries during future compilation steps. |
final bool buildSummaryOnlyDiet; |
@@ -144,6 +148,7 @@ class CommandLineOptions { |
buildSummaryFallback = args['build-summary-fallback'], |
buildSummaryInputs = args['build-summary-input'], |
buildSummaryOnly = args['build-summary-only'], |
+ buildSummaryOnlyAst = args['build-summary-only-ast'], |
buildSummaryOnlyDiet = args['build-summary-only-diet'], |
buildSummaryExcludeInformative = |
args['build-summary-exclude-informative'], |
@@ -350,6 +355,11 @@ class CommandLineOptions { |
defaultsTo: false, |
negatable: false, |
hide: true) |
+ ..addFlag('build-summary-only-ast', |
+ help: 'Generate summaries using ASTs.', |
+ defaultsTo: false, |
+ negatable: false, |
+ hide: true) |
..addFlag('build-summary-only-diet', |
help: 'Diet parse function bodies.', |
defaultsTo: false, |