| Index: pkg/analysis_server/lib/src/generated_protocol.dart
|
| diff --git a/pkg/analysis_server/lib/src/generated_protocol.dart b/pkg/analysis_server/lib/src/generated_protocol.dart
|
| index 7cd663785f5ff950c6a010770253133deb3732e0..70789aa3423f9a6511bd5d6f8dadef0f6c599083 100644
|
| --- a/pkg/analysis_server/lib/src/generated_protocol.dart
|
| +++ b/pkg/analysis_server/lib/src/generated_protocol.dart
|
| @@ -7347,6 +7347,7 @@ class AddContentOverlay implements HasToJson {
|
| * "location": Location
|
| * "message": String
|
| * "correction": optional String
|
| + * "hasFix": optional bool
|
| * }
|
| */
|
| class AnalysisError implements HasToJson {
|
| @@ -7360,6 +7361,8 @@ class AnalysisError implements HasToJson {
|
|
|
| String _correction;
|
|
|
| + bool _hasFix;
|
| +
|
| /**
|
| * The severity of the error.
|
| */
|
| @@ -7430,12 +7433,27 @@ class AnalysisError implements HasToJson {
|
| this._correction = value;
|
| }
|
|
|
| - AnalysisError(AnalysisErrorSeverity severity, AnalysisErrorType type, Location location, String message, {String correction}) {
|
| + /**
|
| + * A hint to indicate to interested clients that this error has an associated
|
| + * fix (or fixes).
|
| + */
|
| + bool get hasFix => _hasFix;
|
| +
|
| + /**
|
| + * A hint to indicate to interested clients that this error has an associated
|
| + * fix (or fixes).
|
| + */
|
| + void set hasFix(bool value) {
|
| + this._hasFix = value;
|
| + }
|
| +
|
| + AnalysisError(AnalysisErrorSeverity severity, AnalysisErrorType type, Location location, String message, {String correction, bool hasFix}) {
|
| this.severity = severity;
|
| this.type = type;
|
| this.location = location;
|
| this.message = message;
|
| this.correction = correction;
|
| + this.hasFix = hasFix;
|
| }
|
|
|
| factory AnalysisError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
|
| @@ -7471,7 +7489,11 @@ class AnalysisError implements HasToJson {
|
| if (json.containsKey("correction")) {
|
| correction = jsonDecoder._decodeString(jsonPath + ".correction", json["correction"]);
|
| }
|
| - return new AnalysisError(severity, type, location, message, correction: correction);
|
| + bool hasFix;
|
| + if (json.containsKey("hasFix")) {
|
| + hasFix = jsonDecoder._decodeBool(jsonPath + ".hasFix", json["hasFix"]);
|
| + }
|
| + return new AnalysisError(severity, type, location, message, correction: correction, hasFix: hasFix);
|
| } else {
|
| throw jsonDecoder.mismatch(jsonPath, "AnalysisError", json);
|
| }
|
| @@ -7486,6 +7508,9 @@ class AnalysisError implements HasToJson {
|
| if (correction != null) {
|
| result["correction"] = correction;
|
| }
|
| + if (hasFix != null) {
|
| + result["hasFix"] = hasFix;
|
| + }
|
| return result;
|
| }
|
|
|
| @@ -7499,7 +7524,8 @@ class AnalysisError implements HasToJson {
|
| type == other.type &&
|
| location == other.location &&
|
| message == other.message &&
|
| - correction == other.correction;
|
| + correction == other.correction &&
|
| + hasFix == other.hasFix;
|
| }
|
| return false;
|
| }
|
| @@ -7512,6 +7538,7 @@ class AnalysisError implements HasToJson {
|
| hash = _JenkinsSmiHash.combine(hash, location.hashCode);
|
| hash = _JenkinsSmiHash.combine(hash, message.hashCode);
|
| hash = _JenkinsSmiHash.combine(hash, correction.hashCode);
|
| + hash = _JenkinsSmiHash.combine(hash, hasFix.hashCode);
|
| return _JenkinsSmiHash.finish(hash);
|
| }
|
| }
|
|
|