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

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

Issue 2972833002: Initial implementation of copy/paste support (Closed)
Patch Set: Created 3 years, 5 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/protocol/protocol.dart
diff --git a/pkg/analysis_server/lib/protocol/protocol.dart b/pkg/analysis_server/lib/protocol/protocol.dart
index 0f913f9a3a6248e64641dd08cebd27eb92058770..d9f0f86748f8101652e14b76d1fd83eed0bea8c3 100644
--- a/pkg/analysis_server/lib/protocol/protocol.dart
+++ b/pkg/analysis_server/lib/protocol/protocol.dart
@@ -470,6 +470,16 @@ class Response {
/**
* Initialize a newly created instance to represent the
+ * GET_IMPORTED_ELEMENTS_INVALID_FILE error condition.
+ */
+ Response.getImportedElementsInvalidFile(Request request)
+ : this(request.id,
+ error: new RequestError(
+ RequestErrorCode.GET_IMPORTED_ELEMENTS_INVALID_FILE,
+ 'Error during `analysis.getImportedElements`: invalid file.'));
+
+ /**
+ * Initialize a newly created instance to represent the
* GET_NAVIGATION_INVALID_FILE error condition.
*/
Response.getNavigationInvalidFile(Request request)
@@ -489,6 +499,16 @@ class Response {
'Error during `analysis.getReachableSources`: invalid file.'));
/**
+ * Initialize a newly created instance to represent the
+ * IMPORT_ELEMENTS_INVALID_FILE error condition.
+ */
+ Response.importElementsInvalidFile(Request request)
+ : this(request.id,
+ error: new RequestError(
+ RequestErrorCode.IMPORT_ELEMENTS_INVALID_FILE,
+ 'Error during `edit.importElements`: invalid file.'));
+
+ /**
* Initialize a newly created instance to represent an error condition caused
* by an analysis.reanalyze [request] that specifies an analysis root that is
* not in the current list of analysis roots.

Powered by Google App Engine
This is Rietveld 408576698