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

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

Issue 2039773004: Start adding experimental incremental analysis mode into CLI analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/incremental_analyzer.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 5a2e93972865d15c4d22c3006d4ca28abe33fe7f..4cd4c6c8ddbcd7af2df28891dcf44b630713b24c 100644
--- a/pkg/analyzer_cli/lib/src/options.dart
+++ b/pkg/analyzer_cli/lib/src/options.dart
@@ -112,6 +112,9 @@ class CommandLineOptions {
/// Whether to use machine format for error display
final bool machineFormat;
+ /// The path to the root folder of the incremental cache.
+ final String incrementalCachePath;
+
/// The path to the package root
final String packageRootPath;
@@ -176,6 +179,7 @@ class CommandLineOptions {
lints = args['lints'],
log = args['log'],
machineFormat = args['machine'] || args['format'] == 'machine',
+ incrementalCachePath = args['incremental-cache-path'],
packageConfigPath = args['packages'],
packageRootPath = args['package-root'],
perfReport = args['x-perf-report'],
@@ -351,6 +355,13 @@ class CommandLineOptions {
allowMultiple: true,
splitCommas: false)
//
+ // Incremental analysis.
+ //
+ ..addOption('incremental-cache-path',
+ help: 'The path to the folder with information to support '
+ 'incremental analysis, e.g. summary files, errors, etc.',
+ hide: true)
+ //
// Build mode.
//
..addFlag('persistent_worker',
« no previous file with comments | « pkg/analyzer_cli/lib/src/incremental_analyzer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698