| 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 69021cbcfa88f939e47632800b84f669ae5960c1..bd9d91c096ff01e244928c3006162750f50321dc 100644
|
| --- a/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
|
| +++ b/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
|
| @@ -7421,6 +7421,109 @@ class ExecutionLaunchDataParams implements HasToJson {
|
| return JenkinsSmiHash.finish(hash);
|
| }
|
| }
|
| +/**
|
| + * experimental.getDiagnostics params
|
| + *
|
| + * Clients may not extend, implement or mix-in this class.
|
| + */
|
| +class ExperimentalGetDiagnosticsParams {
|
| + Request toRequest(String id) {
|
| + return new Request(id, "experimental.getDiagnostics", null);
|
| + }
|
| +
|
| + @override
|
| + bool operator==(other) {
|
| + if (other is ExperimentalGetDiagnosticsParams) {
|
| + return true;
|
| + }
|
| + return false;
|
| + }
|
| +
|
| + @override
|
| + int get hashCode {
|
| + return 876666064;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * experimental.getDiagnostics result
|
| + *
|
| + * {
|
| + * "contexts": List<ContextInfo>
|
| + * }
|
| + *
|
| + * Clients may not extend, implement or mix-in this class.
|
| + */
|
| +class ExperimentalGetDiagnosticsResult implements HasToJson {
|
| + List<ContextInfo> _contexts;
|
| +
|
| + /**
|
| + * The list of analysis contexts.
|
| + */
|
| + List<ContextInfo> get contexts => _contexts;
|
| +
|
| + /**
|
| + * The list of analysis contexts.
|
| + */
|
| + void set contexts(List<ContextInfo> value) {
|
| + assert(value != null);
|
| + this._contexts = value;
|
| + }
|
| +
|
| + ExperimentalGetDiagnosticsResult(List<ContextInfo> contexts) {
|
| + this.contexts = contexts;
|
| + }
|
| +
|
| + factory ExperimentalGetDiagnosticsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
|
| + if (json == null) {
|
| + json = {};
|
| + }
|
| + if (json is Map) {
|
| + List<ContextInfo> contexts;
|
| + if (json.containsKey("contexts")) {
|
| + contexts = jsonDecoder.decodeList(jsonPath + ".contexts", json["contexts"], (String jsonPath, Object json) => new ContextInfo.fromJson(jsonDecoder, jsonPath, json));
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "contexts");
|
| + }
|
| + return new ExperimentalGetDiagnosticsResult(contexts);
|
| + } else {
|
| + throw jsonDecoder.mismatch(jsonPath, "experimental.getDiagnostics result", json);
|
| + }
|
| + }
|
| +
|
| + factory ExperimentalGetDiagnosticsResult.fromResponse(Response response) {
|
| + return new ExperimentalGetDiagnosticsResult.fromJson(
|
| + new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "result", response._result);
|
| + }
|
| +
|
| + Map<String, dynamic> toJson() {
|
| + Map<String, dynamic> result = {};
|
| + result["contexts"] = contexts.map((ContextInfo value) => value.toJson()).toList();
|
| + 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 ExperimentalGetDiagnosticsResult) {
|
| + return listEqual(contexts, other.contexts, (ContextInfo a, ContextInfo b) => a == b);
|
| + }
|
| + return false;
|
| + }
|
| +
|
| + @override
|
| + int get hashCode {
|
| + int hash = 0;
|
| + hash = JenkinsSmiHash.combine(hash, contexts.hashCode);
|
| + return JenkinsSmiHash.finish(hash);
|
| + }
|
| +}
|
|
|
| /**
|
| * AddContentOverlay
|
| @@ -9167,6 +9270,181 @@ class CompletionSuggestionKind implements Enum {
|
| }
|
|
|
| /**
|
| + * ContextInfo
|
| + *
|
| + * {
|
| + * "name": String
|
| + * "explicitlyAnalyzedFiles": int
|
| + * "implicitlyAnalyzedFiles": int
|
| + * "workItemQueueLength": int
|
| + * "cacheEntryExceptions": List<String>
|
| + * }
|
| + *
|
| + * Clients may not extend, implement or mix-in this class.
|
| + */
|
| +class ContextInfo implements HasToJson {
|
| + String _name;
|
| +
|
| + int _explicitlyAnalyzedFiles;
|
| +
|
| + int _implicitlyAnalyzedFiles;
|
| +
|
| + int _workItemQueueLength;
|
| +
|
| + List<String> _cacheEntryExceptions;
|
| +
|
| + /**
|
| + * The name of the context.
|
| + */
|
| + String get name => _name;
|
| +
|
| + /**
|
| + * The name of the context.
|
| + */
|
| + void set name(String value) {
|
| + assert(value != null);
|
| + this._name = value;
|
| + }
|
| +
|
| + /**
|
| + * Explicitly analyzed files.
|
| + */
|
| + int get explicitlyAnalyzedFiles => _explicitlyAnalyzedFiles;
|
| +
|
| + /**
|
| + * Explicitly analyzed files.
|
| + */
|
| + void set explicitlyAnalyzedFiles(int value) {
|
| + assert(value != null);
|
| + this._explicitlyAnalyzedFiles = value;
|
| + }
|
| +
|
| + /**
|
| + * Implicitly analyzed files.
|
| + */
|
| + int get implicitlyAnalyzedFiles => _implicitlyAnalyzedFiles;
|
| +
|
| + /**
|
| + * Implicitly analyzed files.
|
| + */
|
| + void set implicitlyAnalyzedFiles(int value) {
|
| + assert(value != null);
|
| + this._implicitlyAnalyzedFiles = value;
|
| + }
|
| +
|
| + /**
|
| + * The number of work items in the queue.
|
| + */
|
| + int get workItemQueueLength => _workItemQueueLength;
|
| +
|
| + /**
|
| + * The number of work items in the queue.
|
| + */
|
| + void set workItemQueueLength(int value) {
|
| + assert(value != null);
|
| + this._workItemQueueLength = value;
|
| + }
|
| +
|
| + /**
|
| + * Exceptions associated with cache entries.
|
| + */
|
| + List<String> get cacheEntryExceptions => _cacheEntryExceptions;
|
| +
|
| + /**
|
| + * Exceptions associated with cache entries.
|
| + */
|
| + void set cacheEntryExceptions(List<String> value) {
|
| + assert(value != null);
|
| + this._cacheEntryExceptions = value;
|
| + }
|
| +
|
| + ContextInfo(String name, int explicitlyAnalyzedFiles, int implicitlyAnalyzedFiles, int workItemQueueLength, List<String> cacheEntryExceptions) {
|
| + this.name = name;
|
| + this.explicitlyAnalyzedFiles = explicitlyAnalyzedFiles;
|
| + this.implicitlyAnalyzedFiles = implicitlyAnalyzedFiles;
|
| + this.workItemQueueLength = workItemQueueLength;
|
| + this.cacheEntryExceptions = cacheEntryExceptions;
|
| + }
|
| +
|
| + factory ContextInfo.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
|
| + if (json == null) {
|
| + json = {};
|
| + }
|
| + if (json is Map) {
|
| + String name;
|
| + if (json.containsKey("name")) {
|
| + name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]);
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "name");
|
| + }
|
| + int explicitlyAnalyzedFiles;
|
| + if (json.containsKey("explicitlyAnalyzedFiles")) {
|
| + explicitlyAnalyzedFiles = jsonDecoder.decodeInt(jsonPath + ".explicitlyAnalyzedFiles", json["explicitlyAnalyzedFiles"]);
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "explicitlyAnalyzedFiles");
|
| + }
|
| + int implicitlyAnalyzedFiles;
|
| + if (json.containsKey("implicitlyAnalyzedFiles")) {
|
| + implicitlyAnalyzedFiles = jsonDecoder.decodeInt(jsonPath + ".implicitlyAnalyzedFiles", json["implicitlyAnalyzedFiles"]);
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "implicitlyAnalyzedFiles");
|
| + }
|
| + int workItemQueueLength;
|
| + if (json.containsKey("workItemQueueLength")) {
|
| + workItemQueueLength = jsonDecoder.decodeInt(jsonPath + ".workItemQueueLength", json["workItemQueueLength"]);
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "workItemQueueLength");
|
| + }
|
| + List<String> cacheEntryExceptions;
|
| + if (json.containsKey("cacheEntryExceptions")) {
|
| + cacheEntryExceptions = jsonDecoder.decodeList(jsonPath + ".cacheEntryExceptions", json["cacheEntryExceptions"], jsonDecoder.decodeString);
|
| + } else {
|
| + throw jsonDecoder.missingKey(jsonPath, "cacheEntryExceptions");
|
| + }
|
| + return new ContextInfo(name, explicitlyAnalyzedFiles, implicitlyAnalyzedFiles, workItemQueueLength, cacheEntryExceptions);
|
| + } else {
|
| + throw jsonDecoder.mismatch(jsonPath, "ContextInfo", json);
|
| + }
|
| + }
|
| +
|
| + Map<String, dynamic> toJson() {
|
| + Map<String, dynamic> result = {};
|
| + result["name"] = name;
|
| + result["explicitlyAnalyzedFiles"] = explicitlyAnalyzedFiles;
|
| + result["implicitlyAnalyzedFiles"] = implicitlyAnalyzedFiles;
|
| + result["workItemQueueLength"] = workItemQueueLength;
|
| + result["cacheEntryExceptions"] = cacheEntryExceptions;
|
| + return result;
|
| + }
|
| +
|
| + @override
|
| + String toString() => JSON.encode(toJson());
|
| +
|
| + @override
|
| + bool operator==(other) {
|
| + if (other is ContextInfo) {
|
| + return name == other.name &&
|
| + explicitlyAnalyzedFiles == other.explicitlyAnalyzedFiles &&
|
| + implicitlyAnalyzedFiles == other.implicitlyAnalyzedFiles &&
|
| + workItemQueueLength == other.workItemQueueLength &&
|
| + listEqual(cacheEntryExceptions, other.cacheEntryExceptions, (String a, String b) => a == b);
|
| + }
|
| + return false;
|
| + }
|
| +
|
| + @override
|
| + int get hashCode {
|
| + int hash = 0;
|
| + hash = JenkinsSmiHash.combine(hash, name.hashCode);
|
| + hash = JenkinsSmiHash.combine(hash, explicitlyAnalyzedFiles.hashCode);
|
| + hash = JenkinsSmiHash.combine(hash, implicitlyAnalyzedFiles.hashCode);
|
| + hash = JenkinsSmiHash.combine(hash, workItemQueueLength.hashCode);
|
| + hash = JenkinsSmiHash.combine(hash, cacheEntryExceptions.hashCode);
|
| + return JenkinsSmiHash.finish(hash);
|
| + }
|
| +}
|
| +
|
| +/**
|
| * Element
|
| *
|
| * {
|
|
|