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

Unified Diff: pkg/analysis_server/lib/src/generated_protocol.dart

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: pkg/analysis_server/lib/src/generated_protocol.dart
===================================================================
--- pkg/analysis_server/lib/src/generated_protocol.dart (revision 43031)
+++ pkg/analysis_server/lib/src/generated_protocol.dart (working copy)
@@ -708,8 +708,96 @@
return _JenkinsSmiHash.finish(hash);
}
}
+/**
+ * analysis.getLibraryDependencies params
+ */
+class AnalysisGetLibraryDependenciesParams {
+ Request toRequest(String id) {
+ return new Request(id, "analysis.getLibraryDependencies", null);
+ }
+ @override
+ bool operator==(other) {
+ if (other is AnalysisGetLibraryDependenciesParams) {
+ return true;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ return 246577680;
+ }
+}
+
/**
+ * analysis.getLibraryDependencies result
+ *
+ * {
+ * "directories": List<FilePath>
+ * }
+ */
+class AnalysisGetLibraryDependenciesResult implements HasToJson {
+ /**
+ * A list of the paths of directories that contain library elements
+ * referenced by files in existing analysis roots.
+ */
+ List<String> directories;
+
+ AnalysisGetLibraryDependenciesResult(this.directories);
+
+ factory AnalysisGetLibraryDependenciesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
+ if (json == null) {
+ json = {};
+ }
+ if (json is Map) {
+ List<String> directories;
+ if (json.containsKey("directories")) {
+ directories = jsonDecoder._decodeList(jsonPath + ".directories", json["directories"], jsonDecoder._decodeString);
+ } else {
+ throw jsonDecoder.missingKey(jsonPath, "directories");
+ }
+ return new AnalysisGetLibraryDependenciesResult(directories);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "analysis.getLibraryDependencies result");
+ }
+ }
+
+ factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) {
+ return new AnalysisGetLibraryDependenciesResult.fromJson(
+ new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "result", response._result);
+ }
+
+ Map<String, dynamic> toJson() {
+ Map<String, dynamic> result = {};
+ result["directories"] = directories;
+ return result;
+ }
+
+ Response toResponse(String id) {
+ return new Response(id, result: toJson());
+ }
+
+ @override
+ String toString() => JSON.encode(toJson());
+
+ @override
+ bool operator==(other) {
+ if (other is AnalysisGetLibraryDependenciesResult) {
+ return _listEqual(directories, other.directories, (String a, String b) => a == b);
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ int hash = 0;
+ hash = _JenkinsSmiHash.combine(hash, directories.hashCode);
+ return _JenkinsSmiHash.finish(hash);
+ }
+}
+
+/**
* analysis.getNavigation params
*
* {

Powered by Google App Engine
This is Rietveld 408576698