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

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

Issue 781783002: Add an option for incremental resolution of API breaking changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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/analysis_server/lib/driver.dart
diff --git a/pkg/analysis_server/lib/driver.dart b/pkg/analysis_server/lib/driver.dart
index a96b699226fae0f7e88ca9483ebe0b27bcebd1ee..c81bb8982ce95be217b460f121b7b9153efdae5d 100644
--- a/pkg/analysis_server/lib/driver.dart
+++ b/pkg/analysis_server/lib/driver.dart
@@ -62,6 +62,13 @@ class Driver {
"enable-incremental-resolution";
/**
+ * The name of the option used to enable incremental resolution of API
+ * changes.
+ */
+ static const String ENABLE_INCREMENTAL_RESOLUTION_API =
+ "enable-incremental-resolution-api";
+
+ /**
* The name of the option used to describe the incremental resolution logger.
*/
static const String INCREMENTAL_RESOLUTION_LOG = "incremental-resolution-log";
@@ -125,6 +132,11 @@ class Driver {
defaultsTo: false,
negatable: false);
parser.addFlag(
+ ENABLE_INCREMENTAL_RESOLUTION_API,
+ help: "enable using incremental resolution for API changes",
+ defaultsTo: false,
+ negatable: false);
+ parser.addFlag(
ENABLE_INSTRUMENTATION_OPTION,
help: "enable sending instrumentation information to a server",
defaultsTo: false,
@@ -189,6 +201,8 @@ class Driver {
AnalysisServerOptions analysisServerOptions = new AnalysisServerOptions();
analysisServerOptions.enableIncrementalResolution =
results[ENABLE_INCREMENTAL_RESOLUTION];
+ analysisServerOptions.enableIncrementalResolutionApi =
+ results[ENABLE_INCREMENTAL_RESOLUTION_API];
_initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]);

Powered by Google App Engine
This is Rietveld 408576698