| 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 5d8f0fff980222b122671297bc47ef2815066067..dec7e5e2d424f9e4de53a9dc53dcdd44e5a97809 100644
|
| --- a/pkg/analysis_server/lib/src/generated_protocol.dart
|
| +++ b/pkg/analysis_server/lib/src/generated_protocol.dart
|
| @@ -1405,15 +1405,45 @@ class AnalysisUpdateContentParams implements HasToJson {
|
| return _JenkinsSmiHash.finish(hash);
|
| }
|
| }
|
| +
|
| /**
|
| * analysis.updateContent result
|
| + *
|
| + * {
|
| + * }
|
| */
|
| -class AnalysisUpdateContentResult {
|
| +class AnalysisUpdateContentResult implements HasToJson {
|
| + AnalysisUpdateContentResult();
|
| +
|
| + factory AnalysisUpdateContentResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
|
| + if (json == null) {
|
| + json = {};
|
| + }
|
| + if (json is Map) {
|
| + return new AnalysisUpdateContentResult();
|
| + } else {
|
| + throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent result");
|
| + }
|
| + }
|
| +
|
| + factory AnalysisUpdateContentResult.fromResponse(Response response) {
|
| + return new AnalysisUpdateContentResult.fromJson(
|
| + new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "result", response._result);
|
| + }
|
| +
|
| + Map<String, dynamic> toJson() {
|
| + Map<String, dynamic> result = {};
|
| + return result;
|
| + }
|
| +
|
| Response toResponse(String id) {
|
| - return new Response(id, result: null);
|
| + return new Response(id, result: toJson());
|
| }
|
|
|
| @override
|
| + String toString() => JSON.encode(toJson());
|
| +
|
| + @override
|
| bool operator==(other) {
|
| if (other is AnalysisUpdateContentResult) {
|
| return true;
|
| @@ -1423,7 +1453,8 @@ class AnalysisUpdateContentResult {
|
|
|
| @override
|
| int get hashCode {
|
| - return 468798730;
|
| + int hash = 0;
|
| + return _JenkinsSmiHash.finish(hash);
|
| }
|
| }
|
|
|
|
|