| 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
|
| *
|
| * {
|
|
|