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

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

Issue 1838883002: Add the '--build-summary-only-ast' flag for generating summaries using only ASTs. (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 | « 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 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,
« 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