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

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

Issue 601083005: Implement 'edit.sortMembers' request. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to add tests Created 6 years, 3 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 65c4d0e27a82bc5fd2fc6066104fce4040f86ef3..8ce7e103702e7fec42b40e9695b9fe9b3c061328 100644
--- a/pkg/analysis_server/lib/src/protocol.dart
+++ b/pkg/analysis_server/lib/src/protocol.dart
@@ -962,6 +962,26 @@ class Response {
: this('', error: new RequestError(RequestErrorCode.INVALID_REQUEST, 'Invalid request'));
/**
+ * Initialize a newly created instance to represent the
+ * SORT_MEMBERS_INVALID_FILE error condition.
+ */
+ Response.sortMembersInvalidFile(Request request)
+ : this(
+ request.id,
+ error: new RequestError(RequestErrorCode.SORT_MEMBERS_INVALID_FILE,
+ 'Error during `edit.sortMembers`: invalid file.'));
+
+ /**
+ * Initialize a newly created instance to represent the
+ * SORT_MEMBERS_PARSE_ERRORS error condition.
+ */
+ Response.sortMembersParseErrors(Request request, int numErrors)
+ : this(
+ request.id,
+ error: new RequestError(RequestErrorCode.SORT_MEMBERS_PARSE_ERRORS,
+ 'Error during `edit.sortMembers`: file has $numErrors scan/parse errors.'));
+
+ /**
* Initialize a newly created instance to represent an error condition caused
* by a `analysis.setPriorityFiles` [request] that includes one or more files
* that are not being analyzed.
« no previous file with comments | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | pkg/analysis_server/test/edit/sort_members_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698