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

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

Issue 300313002: Switch to using remote analysis server instead of local. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java
index 47c77e25101aa3c6b84bfc982f21b4e6a5e7f3a0..fefd86aaafe171f3b5791ff53009606836eb276f 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java
@@ -43,6 +43,7 @@ public class RequestUtilities {
private static final String METHOD_SERVER_GET_VERSION = "server.getVersion";
private static final String METHOD_SERVER_SHUTDOWN = "server.shutdown";
private static final String METHOD_SERVER_SET_SUBSCRIPTIONS = "server.setSubscriptions";
+ private static final String METHOD_ANALYSIS_SET_ROOTS = "analysis.setAnalysisRoots";
// Context domain
// private static final String METHOD_CONTEXT_APPLY_ANALYSIS_DELTA = "context.applyAnalysisDelta";
@@ -255,6 +256,28 @@ public class RequestUtilities {
// }
/**
+ * Generate and return a {@value #METHOD_ANALYSIS_SET_ROOTS} request.
+ *
+ * <pre>
+ * request: {
+ * "id": String
+ * "method": "analysis.setAnalysisRoots"
+ * "params": {
+ * "included": List&lt;FilePath&gt;
+ * "excluded": List&lt;FilePath&gt;
+ * }
+ * }
+ * </pre>
+ */
+ public static JsonObject generateAnalysisSetAnalysisRoots(String id, List<String> included,
jwren 2014/05/28 17:31:15 Normally I'd say that your missing a test in Reque
+ List<String> excluded) {
+ JsonObject params = new JsonObject();
+ params.add("included", buildJsonArray(included));
+ params.add("excluded", buildJsonArray(excluded));
+ return buildJsonObjectRequest(id, METHOD_ANALYSIS_SET_ROOTS, params);
+ }
+
+ /**
* Generate and return a {@value #METHOD_SERVER_GET_VERSION} request.
*
* <pre>

Powered by Google App Engine
This is Rietveld 408576698