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 31e52c9c88c9039625bdb27496b9b2527a1c933d..69a6fc937510b5bf4808f7f80f584e5ba20e476b 100644 |
--- a/pkg/analysis_server/lib/src/protocol.dart |
+++ b/pkg/analysis_server/lib/src/protocol.dart |
@@ -733,6 +733,16 @@ class Response { |
/** |
* 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. |
+ */ |
+ Response.invalidAnalysisRoot(Request request, String rootPath) : this( |
+ request.id, |
+ error: new RequestError(RequestErrorCode.INVALID_ANALYSIS_ROOT, |
+ "Invalid analysis root: $rootPath")); |
+ |
+ /** |
+ * Initialize a newly created instance to represent an error condition caused |
* by a [request] that specifies an execution context whose context root does |
* not exist. |
*/ |