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

Unified Diff: pkg/analysis_server/lib/src/server/driver.dart

Issue 2243003002: Add a new Analysis Server flag '--enable-pub-summary-manager'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/analysis_server/lib/src/analysis_server.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e21d2c869d00242d5226096aa895d1a568b8c272..28deb0921430b3a34886d03b2275e97c534d370a 100644
--- a/pkg/analysis_server/lib/src/server/driver.dart
+++ b/pkg/analysis_server/lib/src/server/driver.dart
@@ -243,6 +243,11 @@ class Driver implements ServerStarter {
"incremental-resolution-validation";
/**
+ * The name of the option used to enable using pub summary manager.
+ */
+ static const String ENABLE_PUB_SUMMARY_MANAGER = 'enable-pub-summary-manager';
+
+ /**
* The name of the option used to enable fined grained invalidation.
*/
static const String FINER_GRAINED_INVALIDATION = 'finer-grained-invalidation';
@@ -378,6 +383,8 @@ class Driver implements ServerStarter {
results[ENABLE_INCREMENTAL_RESOLUTION_API];
analysisServerOptions.enableIncrementalResolutionValidation =
results[INCREMENTAL_RESOLUTION_VALIDATION];
+ analysisServerOptions.enablePubSummaryManager =
+ results[ENABLE_PUB_SUMMARY_MANAGER];
analysisServerOptions.finerGrainedInvalidation =
results[FINER_GRAINED_INVALIDATION];
analysisServerOptions.noErrorNotification = results[NO_ERROR_NOTIFICATION];
@@ -534,6 +541,10 @@ class Driver implements ServerStarter {
help: "enable validation of incremental resolution results (slow)",
defaultsTo: false,
negatable: false);
+ parser.addFlag(ENABLE_PUB_SUMMARY_MANAGER,
+ help: "enable using summaries for pub cache packages",
+ defaultsTo: false,
+ negatable: false);
parser.addFlag(FINER_GRAINED_INVALIDATION,
help: "enable finer grained invalidation",
defaultsTo: false,
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698