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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java

Issue 1050143002: use the new reanalyze sources server api (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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: 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);
+ }
}
/**

Powered by Google App Engine
This is Rietveld 408576698