Index: pkg/analysis_server/lib/src/server/driver.dart |
diff --git a/pkg/analysis_server/lib/src/server/driver.dart b/pkg/analysis_server/lib/src/server/driver.dart |
index 3095df81c368e09dd0d629ff5f181abf3d49673b..df6df7bc05dddf31ec8f90225ee76eabc553da8c 100644 |
--- a/pkg/analysis_server/lib/src/server/driver.dart |
+++ b/pkg/analysis_server/lib/src/server/driver.dart |
@@ -245,6 +245,11 @@ class Driver implements ServerStarter { |
/** |
* The name of the option used to enable using pub summary manager. |
*/ |
+ static const String ENABLE_NEW_ANALYSIS_DRIVER = 'enable-new-analysis-driver'; |
+ |
+ /** |
+ * The name of the option used to enable using pub summary manager. |
+ */ |
static const String ENABLE_PUB_SUMMARY_MANAGER = 'enable-pub-summary-manager'; |
/** |
@@ -383,6 +388,8 @@ class Driver implements ServerStarter { |
results[ENABLE_INCREMENTAL_RESOLUTION_API]; |
analysisServerOptions.enableIncrementalResolutionValidation = |
results[INCREMENTAL_RESOLUTION_VALIDATION]; |
+ analysisServerOptions.enableNewAnalysisDriver = |
+ results[ENABLE_NEW_ANALYSIS_DRIVER]; |
analysisServerOptions.enablePubSummaryManager = |
results[ENABLE_PUB_SUMMARY_MANAGER]; |
analysisServerOptions.finerGrainedInvalidation = |
@@ -532,6 +539,10 @@ class Driver implements ServerStarter { |
help: "enable validation of incremental resolution results (slow)", |
defaultsTo: false, |
negatable: false); |
+ parser.addFlag(ENABLE_NEW_ANALYSIS_DRIVER, |
+ help: "enable using new analysis driver", |
+ defaultsTo: false, |
+ negatable: false); |
parser.addFlag(ENABLE_PUB_SUMMARY_MANAGER, |
help: "enable using summaries for pub cache packages", |
defaultsTo: false, |