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

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

Issue 672003002: Add package root setting to analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 5253968b610d8e2d86219a734b5fdc1a7b65b926..c8739cdc6f72aab508ea44dd8a5ce914c5a261b1 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
@@ -201,15 +201,19 @@ public class RequestUtilities {
* "params": {
* "included": List<FilePath>
* "excluded": List<FilePath>
+ * "packageRoots": optional Map<FilePath, FilePath>
* }
* }
* </pre>
*/
public static JsonObject generateAnalysisSetAnalysisRoots(String id, List<String> included,
- List<String> excluded) {
+ List<String> excluded, Map<String, String> packageRoots) {
JsonObject params = new JsonObject();
params.add("included", buildJsonElement(included));
params.add("excluded", buildJsonElement(excluded));
+ if (packageRoots != null) {
+ params.add("packageRoots", buildJsonElement(packageRoots));
+ }
return buildJsonObjectRequest(id, METHOD_ANALYSIS_SET_ROOTS, params);
}

Powered by Google App Engine
This is Rietveld 408576698