Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java |
=================================================================== |
--- editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java (revision 44832) |
+++ editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java (working copy) |
@@ -233,11 +233,20 @@ |
* request: { |
* "id": String |
* "method": "analysis.reanalyze" |
+ * "params": { |
+ * "roots": optional List<FilePath> |
+ * } |
* } |
* </pre> |
*/ |
- public static JsonObject generateAnalysisReanalyze(String id) { |
- return buildJsonObjectRequest(id, METHOD_ANALYSIS_REANALYZE); |
+ public static JsonObject generateAnalysisReanalyze(String id, List<String> roots) { |
+ if (roots != null) { |
+ JsonObject params = new JsonObject(); |
+ params.add("roots", buildJsonElement(roots)); |
+ return buildJsonObjectRequest(id, METHOD_ANALYSIS_REANALYZE, params); |
+ } else { |
+ return buildJsonObjectRequest(id, METHOD_ANALYSIS_REANALYZE); |
+ } |
} |
/** |