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

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

Issue 737623002: Add the --no-error-notification flag to the analysis server flag set, not yet implemented. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/driver.dart
diff --git a/pkg/analysis_server/lib/driver.dart b/pkg/analysis_server/lib/driver.dart
index 6d6682d8f141151c76471b2bcfcc31725f1a9f8c..4a7bc5393e88f8514c90e57adcfa3100875e8032 100644
--- a/pkg/analysis_server/lib/driver.dart
+++ b/pkg/analysis_server/lib/driver.dart
@@ -24,7 +24,7 @@ class Driver {
/**
* The name of the application that is used to start a server.
*/
- static const BINARY_NAME = 'server';
+ static const BINARY_NAME = "server";
/**
* The name of the option used to enable instrumentation.
@@ -54,7 +54,12 @@ class Driver {
* TODO(paulberry): get rid of this once the 'analysis.updateSdks' request is
* operational.
*/
- static const String SDK_OPTION = 'sdk';
+ static const String SDK_OPTION = "sdk";
+
+ /**
+ * The name of the option used to disable error notifications.
+ */
+ static const String NO_ERROR_NOTIFICATION = "no-error-notification";
SocketServer socketServer;
@@ -85,6 +90,11 @@ class Driver {
PORT_OPTION,
help: "[port] the port on which the server will listen");
parser.addOption(SDK_OPTION, help: "[path] the path to the sdk");
+ parser.addFlag(
+ NO_ERROR_NOTIFICATION,
+ help: "disable sending all analysis error notifications to the server (not yet implemented)",
+ defaultsTo: false,
+ negatable: false);
ArgResults results = parser.parse(args);
if (results[HELP_OPTION]) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698