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

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

Issue 839553005: Add a flag/options for enabling incremental resolution validation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/analysis_server/lib/driver.dart
diff --git a/pkg/analysis_server/lib/driver.dart b/pkg/analysis_server/lib/driver.dart
index e9465f1d283dd7926bab3308ebc5f73ddc5a48a8..dbd550a6f396addea8c9f02e183b63d49e4e3191 100644
--- a/pkg/analysis_server/lib/driver.dart
+++ b/pkg/analysis_server/lib/driver.dart
@@ -75,6 +75,13 @@ class Driver {
static const String INCREMENTAL_RESOLUTION_LOG = "incremental-resolution-log";
/**
+ * The name of the option used to enable validation of incremental resolution
+ * results.
+ */
+ static const String INCREMENTAL_RESOLUTION_VALIDATION =
+ "incremental-resolution-validation";
+
+ /**
* The name of the option used to enable instrumentation.
*/
static const String ENABLE_INSTRUMENTATION_OPTION = "enable-instrumentation";
@@ -145,7 +152,12 @@ class Driver {
negatable: false);
parser.addOption(
INCREMENTAL_RESOLUTION_LOG,
- help: "the description of the incremental resolotion log");
+ help: "the description of the incremental resolution log");
+ parser.addFlag(
+ INCREMENTAL_RESOLUTION_VALIDATION,
+ help: "enable validation of incremental resolution results (slow)",
+ defaultsTo: false,
+ negatable: false);
parser.addFlag(
INTERNAL_PRINT_TO_CONSOLE,
help: "enable sending `print` output to the console",
@@ -204,6 +216,8 @@ class Driver {
AnalysisServerOptions analysisServerOptions = new AnalysisServerOptions();
analysisServerOptions.enableIncrementalResolutionApi =
results[ENABLE_INCREMENTAL_RESOLUTION_API];
+ analysisServerOptions.enableIncrementalResolutionValidation =
+ results[INCREMENTAL_RESOLUTION_VALIDATION];
_initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]);

Powered by Google App Engine
This is Rietveld 408576698