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

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

Issue 243753002: Analysis server context ID is now specified by the client. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/src/protocol.dart
diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart
index c219cf3a267812228b55d20bbc22881b60c1373a..4b32544c1f52cb1c33bd28ac27117d19276dc76c 100644
--- a/pkg/analysis_server/lib/src/protocol.dart
+++ b/pkg/analysis_server/lib/src/protocol.dart
@@ -265,6 +265,9 @@ class Response {
Response.unknownRequest(Request request)
: this(request.id, new RequestError(-7, 'Unknown request'));
+ Response.contextAlreadyExists(Request request)
+ : this(request.id, new RequestError(-8, 'Context already exists'));
+
/**
* Initialize a newly created instance based upon the given JSON data
*/

Powered by Google App Engine
This is Rietveld 408576698