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

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

Issue 861893003: Library Dependencies Analysis service API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 43075)
+++ editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/utilities/RequestUtilities.java (working copy)
@@ -56,6 +56,7 @@
// Analysis domain
private static final String METHOD_ANALYSIS_GET_ERRORS = "analysis.getErrors";
private static final String METHOD_ANALYSIS_GET_HOVER = "analysis.getHover";
+ private static final String METHOD_ANALYSIS_GET_LIBRARY_DEPENDENCIES = "analysis.getLibraryDependencies";
private static final String METHOD_ANALYSIS_GET_NAVIGATION = "analysis.getNavigation";
private static final String METHOD_ANALYSIS_REANALYZE = "analysis.reanalyze";
private static final String METHOD_ANALYSIS_SET_ROOTS = "analysis.setAnalysisRoots";
@@ -182,6 +183,20 @@
}
/**
+ * Generate and return a {@value #METHOD_ANALYSIS_GET_LIBRARY_DEPENDENCIES} request.
+ *
+ * <pre>
+ * request: {
+ * "id": String
+ * "method": "analysis.getLibraryDependencies"
+ * }
+ * </pre>
+ */
+ public static JsonObject generateAnalysisGetLibraryDependencies(String id) {
+ return buildJsonObjectRequest(id, METHOD_ANALYSIS_GET_LIBRARY_DEPENDENCIES);
+ }
+
+ /**
* Generate and return a {@value #METHOD_ANALYSIS_GET_NAVIGATION} request.
*
* <pre>

Powered by Google App Engine
This is Rietveld 408576698