| Index: pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
|
| diff --git a/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart b/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
|
| index c837642dd2638ba31495923ab1e22aa6e4f98ebb..ce5b56c0891b4db19452b86096daaebd1e02b8d0 100644
|
| --- a/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
|
| +++ b/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
|
| @@ -938,6 +938,176 @@ class AnalysisGetHoverResult implements HasToJson {
|
| return JenkinsSmiHash.finish(hash);
|
| }
|
| }
|
| +
|
| +/**
|
| + * analysis.getReachableSources params
|
| + *
|
| + * {
|
| + * "file": FilePath
|
| + * }
|
| + *
|
| + * Clients may not extend, implement or mix-in this class.
|
| + */
|
| +class AnalysisGetReachableSourcesParams implements HasToJson {
|
| + String _file;
|
| +
|
| + /**
|
| + * The file for which reachable source information is being requested.
|
| + */
|
| + String get file => _file;
|
| +
|
| + /**
|
| + * The file for which reachable source information is being requested.
|
| + */
|
| + void set file(String value) {
|
| + assert(value != null);
|
| + this._file = value;
|
| + }
|
| +
|
| + AnalysisGetReachableSourcesParams(String file) {
|
| + this.file = file;
|
| + }
|
| +
|
| + factory AnalysisGetReachableSourcesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
|
| + if (json == null) {
|
| + json = {};
|
| + }
|
| + if (json is Map) {
|
| + String file;
|
| + if (json.containsKey("file")) {
|
| + file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]);
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "file");
|
| + }
|
| + return new AnalysisGetReachableSourcesParams(file);
|
| + } else {
|
| + throw jsonDecoder.mismatch(jsonPath, "analysis.getReachableSources params", json);
|
| + }
|
| + }
|
| +
|
| + factory AnalysisGetReachableSourcesParams.fromRequest(Request request) {
|
| + return new AnalysisGetReachableSourcesParams.fromJson(
|
| + new RequestDecoder(request), "params", request._params);
|
| + }
|
| +
|
| + Map<String, dynamic> toJson() {
|
| + Map<String, dynamic> result = {};
|
| + result["file"] = file;
|
| + return result;
|
| + }
|
| +
|
| + Request toRequest(String id) {
|
| + return new Request(id, "analysis.getReachableSources", toJson());
|
| + }
|
| +
|
| + @override
|
| + String toString() => JSON.encode(toJson());
|
| +
|
| + @override
|
| + bool operator==(other) {
|
| + if (other is AnalysisGetReachableSourcesParams) {
|
| + return file == other.file;
|
| + }
|
| + return false;
|
| + }
|
| +
|
| + @override
|
| + int get hashCode {
|
| + int hash = 0;
|
| + hash = JenkinsSmiHash.combine(hash, file.hashCode);
|
| + return JenkinsSmiHash.finish(hash);
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * analysis.getReachableSources result
|
| + *
|
| + * {
|
| + * "sources": Map<String, List<String>>
|
| + * }
|
| + *
|
| + * Clients may not extend, implement or mix-in this class.
|
| + */
|
| +class AnalysisGetReachableSourcesResult implements HasToJson {
|
| + Map<String, List<String>> _sources;
|
| +
|
| + /**
|
| + * A mapping from source URIs to directly reachable source URIs. For example,
|
| + * a file "foo.dart" that imports "bar.dart" would have the corresponding
|
| + * mapping { "file:///foo.dart" : ["file:///bar.dart"] }. If "bar.dart" has
|
| + * further imports (or exports) there will be a mapping from the URI
|
| + * "file:///bar.dart" to them. To check if a specific URI is reachable from a
|
| + * given file, clients can check for its presence in the resulting key set.
|
| + */
|
| + Map<String, List<String>> get sources => _sources;
|
| +
|
| + /**
|
| + * A mapping from source URIs to directly reachable source URIs. For example,
|
| + * a file "foo.dart" that imports "bar.dart" would have the corresponding
|
| + * mapping { "file:///foo.dart" : ["file:///bar.dart"] }. If "bar.dart" has
|
| + * further imports (or exports) there will be a mapping from the URI
|
| + * "file:///bar.dart" to them. To check if a specific URI is reachable from a
|
| + * given file, clients can check for its presence in the resulting key set.
|
| + */
|
| + void set sources(Map<String, List<String>> value) {
|
| + assert(value != null);
|
| + this._sources = value;
|
| + }
|
| +
|
| + AnalysisGetReachableSourcesResult(Map<String, List<String>> sources) {
|
| + this.sources = sources;
|
| + }
|
| +
|
| + factory AnalysisGetReachableSourcesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
|
| + if (json == null) {
|
| + json = {};
|
| + }
|
| + if (json is Map) {
|
| + Map<String, List<String>> sources;
|
| + if (json.containsKey("sources")) {
|
| + sources = jsonDecoder.decodeMap(jsonPath + ".sources", json["sources"], valueDecoder: (String jsonPath, Object json) => jsonDecoder.decodeList(jsonPath, json, jsonDecoder.decodeString));
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "sources");
|
| + }
|
| + return new AnalysisGetReachableSourcesResult(sources);
|
| + } else {
|
| + throw jsonDecoder.mismatch(jsonPath, "analysis.getReachableSources result", json);
|
| + }
|
| + }
|
| +
|
| + factory AnalysisGetReachableSourcesResult.fromResponse(Response response) {
|
| + return new AnalysisGetReachableSourcesResult.fromJson(
|
| + new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "result", response._result);
|
| + }
|
| +
|
| + Map<String, dynamic> toJson() {
|
| + Map<String, dynamic> result = {};
|
| + result["sources"] = sources;
|
| + 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 AnalysisGetReachableSourcesResult) {
|
| + return mapEqual(sources, other.sources, (List<String> a, List<String> b) => listEqual(a, b, (String a, String b) => a == b));
|
| + }
|
| + return false;
|
| + }
|
| +
|
| + @override
|
| + int get hashCode {
|
| + int hash = 0;
|
| + hash = JenkinsSmiHash.combine(hash, sources.hashCode);
|
| + return JenkinsSmiHash.finish(hash);
|
| + }
|
| +}
|
| /**
|
| * analysis.getLibraryDependencies params
|
| *
|
|
|