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

Unified Diff: pkg/analysis_server/lib/plugin/protocol/protocol.dart

Issue 2703033002: Add a diagnostic.getServerPort analysis server request. (Closed)
Patch Set: nits to the spec doc Created 3 years, 10 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/plugin/protocol/protocol.dart
diff --git a/pkg/analysis_server/lib/plugin/protocol/protocol.dart b/pkg/analysis_server/lib/plugin/protocol/protocol.dart
index 49e19c16fbc0aa3b245e8664011fe8ad12398803..ea425cf2107d758549a8eb946e1262a1b1ca5ced 100644
--- a/pkg/analysis_server/lib/plugin/protocol/protocol.dart
+++ b/pkg/analysis_server/lib/plugin/protocol/protocol.dart
@@ -339,6 +339,14 @@ class Response {
: _result = result;
/**
+ * Create and return the `DEBUG_PORT_COULD_NOT_BE_OPENED` error response.
+ */
+ Response.debugPortCouldNotBeOpened(Request request, dynamic error)
+ : this(request.id,
+ error: new RequestError(
+ RequestErrorCode.DEBUG_PORT_COULD_NOT_BE_OPENED, '$error'));
+
+ /**
* Initialize a newly created instance to represent the FILE_NOT_ANALYZED
* error condition.
*/
« no previous file with comments | « pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart ('k') | pkg/analysis_server/lib/src/analysis_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698