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 7dd9de9317afa75fedd7b6b9f8c0ef61166ea032..915d04366022d868d89ff059501a0b2f844ffb0a 100644 |
--- a/pkg/analyzer_cli/lib/src/options.dart |
+++ b/pkg/analyzer_cli/lib/src/options.dart |
@@ -33,7 +33,7 @@ typedef void ExitHandler(int code); |
/// Analyzer commandline configuration options. |
class CommandLineOptions { |
- final bool enableNewAnalysisDriver = false; |
+ final bool enableNewAnalysisDriver = true; |
/// The path to output analysis results when in build mode. |
final String buildAnalysisOutput; |
@@ -143,6 +143,9 @@ class CommandLineOptions { |
/// Whether to treat lints as fatal |
final bool lintsAreFatal; |
+ /// Whether to use memory byte store for analysis driver. |
+ final bool useAnalysisDriverMemoryByteStore; |
+ |
/// Initialize options from the given parsed [args]. |
CommandLineOptions._fromArgs(ArgResults args) |
: buildAnalysisOutput = args['build-analysis-output'], |
@@ -181,7 +184,9 @@ class CommandLineOptions { |
strongMode = args['strong'], |
implicitCasts = !args['no-implicit-casts'], |
implicitDynamic = !args['no-implicit-dynamic'], |
- lintsAreFatal = args['fatal-lints']; |
+ lintsAreFatal = args['fatal-lints'], |
+ useAnalysisDriverMemoryByteStore = |
+ args['use-analysis-driver-memory-byte-store']; |
/// The path to an analysis options file |
String get analysisOptionsFile => |
@@ -453,6 +458,11 @@ class CommandLineOptions { |
help: 'Check types in constant evaluation.', |
defaultsTo: false, |
negatable: false, |
+ hide: hide) |
+ ..addFlag('use-analysis-driver-memory-byte-store', |
+ help: 'Use memory byte store, not the file system cache.', |
+ defaultsTo: false, |
+ negatable: false, |
hide: hide); |
try { |