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

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

Issue 1974323003: Add '--dart-sdk-summary' option to analyzer-cli and use SummaryBasedDartSdk. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
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 9151f6bd293f7a60eced3f08ad6f79dfc65a2c8e..5a2e93972865d15c4d22c3006d4ca28abe33fe7f 100644
--- a/pkg/analyzer_cli/lib/src/options.dart
+++ b/pkg/analyzer_cli/lib/src/options.dart
@@ -68,9 +68,12 @@ class CommandLineOptions {
/// Whether to suppress a nonzero exit code in build mode.
final bool buildSuppressExitCode;
- /// The path to the dart SDK
+ /// The path to the dart SDK.
String dartSdkPath;
+ /// The path to the dart SDK summary file.
+ String dartSdkSummaryPath;
+
/// A table mapping the names of defined variables to their values.
final Map<String, String> definedVariables;
@@ -159,6 +162,7 @@ class CommandLineOptions {
buildSummaryOutput = args['build-summary-output'],
buildSuppressExitCode = args['build-suppress-exit-code'],
dartSdkPath = args['dart-sdk'],
+ dartSdkSummaryPath = args['dart-sdk-summary'],
definedVariables = definedVariables,
analysisOptionsFile = args['options'],
disableHints = args['no-hints'],
@@ -273,6 +277,8 @@ class CommandLineOptions {
defaultsTo: false,
negatable: false)
..addOption('dart-sdk', help: 'The path to the Dart SDK.')
+ ..addOption('dart-sdk-summary',
+ help: 'The path to the Dart SDK summary file.', hide: true)
..addOption('packages',
help:
'Path to the package resolution configuration file, which supplies '
« pkg/analyzer/lib/src/summary/summary_sdk.dart ('K') | « pkg/analyzer_cli/lib/src/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698