| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
| 7 // "pkg/analysis_server/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
| 8 | 8 |
| 9 part of protocol; | 9 part of protocol; |
| 10 /** | 10 /** |
| (...skipping 9568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9579 int get hashCode { | 9579 int get hashCode { |
| 9580 int hash = 0; | 9580 int hash = 0; |
| 9581 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); | 9581 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); |
| 9582 hash = _JenkinsSmiHash.combine(hash, createGetter.hashCode); | 9582 hash = _JenkinsSmiHash.combine(hash, createGetter.hashCode); |
| 9583 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 9583 hash = _JenkinsSmiHash.combine(hash, name.hashCode); |
| 9584 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); | 9584 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); |
| 9585 hash = _JenkinsSmiHash.combine(hash, extractAll.hashCode); | 9585 hash = _JenkinsSmiHash.combine(hash, extractAll.hashCode); |
| 9586 return _JenkinsSmiHash.finish(hash); | 9586 return _JenkinsSmiHash.finish(hash); |
| 9587 } | 9587 } |
| 9588 } | 9588 } |
| 9589 |
| 9589 /** | 9590 /** |
| 9590 * inlineLocalVariable feedback | 9591 * inlineLocalVariable feedback |
| 9592 * |
| 9593 * { |
| 9594 * "name": String |
| 9595 * "occurrences": int |
| 9596 * } |
| 9591 */ | 9597 */ |
| 9592 class InlineLocalVariableFeedback { | 9598 class InlineLocalVariableFeedback extends RefactoringFeedback implements HasToJs
on { |
| 9599 /** |
| 9600 * The name of the variable being inlined. |
| 9601 */ |
| 9602 String name; |
| 9603 |
| 9604 /** |
| 9605 * The number of times the variable occurs. |
| 9606 */ |
| 9607 int occurrences; |
| 9608 |
| 9609 InlineLocalVariableFeedback(this.name, this.occurrences); |
| 9610 |
| 9611 factory InlineLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 9612 if (json == null) { |
| 9613 json = {}; |
| 9614 } |
| 9615 if (json is Map) { |
| 9616 String name; |
| 9617 if (json.containsKey("name")) { |
| 9618 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); |
| 9619 } else { |
| 9620 throw jsonDecoder.missingKey(jsonPath, "name"); |
| 9621 } |
| 9622 int occurrences; |
| 9623 if (json.containsKey("occurrences")) { |
| 9624 occurrences = jsonDecoder._decodeInt(jsonPath + ".occurrences", json["oc
currences"]); |
| 9625 } else { |
| 9626 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
| 9627 } |
| 9628 return new InlineLocalVariableFeedback(name, occurrences); |
| 9629 } else { |
| 9630 throw jsonDecoder.mismatch(jsonPath, "inlineLocalVariable feedback"); |
| 9631 } |
| 9632 } |
| 9633 |
| 9634 Map<String, dynamic> toJson() { |
| 9635 Map<String, dynamic> result = {}; |
| 9636 result["name"] = name; |
| 9637 result["occurrences"] = occurrences; |
| 9638 return result; |
| 9639 } |
| 9640 |
| 9641 @override |
| 9642 String toString() => JSON.encode(toJson()); |
| 9643 |
| 9593 @override | 9644 @override |
| 9594 bool operator==(other) { | 9645 bool operator==(other) { |
| 9595 if (other is InlineLocalVariableFeedback) { | 9646 if (other is InlineLocalVariableFeedback) { |
| 9596 return true; | 9647 return name == other.name && |
| 9648 occurrences == other.occurrences; |
| 9597 } | 9649 } |
| 9598 return false; | 9650 return false; |
| 9599 } | 9651 } |
| 9600 | 9652 |
| 9601 @override | 9653 @override |
| 9602 int get hashCode { | 9654 int get hashCode { |
| 9603 return 247971243; | 9655 int hash = 0; |
| 9656 hash = _JenkinsSmiHash.combine(hash, name.hashCode); |
| 9657 hash = _JenkinsSmiHash.combine(hash, occurrences.hashCode); |
| 9658 return _JenkinsSmiHash.finish(hash); |
| 9604 } | 9659 } |
| 9605 } | 9660 } |
| 9606 /** | 9661 /** |
| 9607 * inlineLocalVariable options | 9662 * inlineLocalVariable options |
| 9608 */ | 9663 */ |
| 9609 class InlineLocalVariableOptions { | 9664 class InlineLocalVariableOptions { |
| 9610 @override | 9665 @override |
| 9611 bool operator==(other) { | 9666 bool operator==(other) { |
| 9612 if (other is InlineLocalVariableOptions) { | 9667 if (other is InlineLocalVariableOptions) { |
| 9613 return true; | 9668 return true; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9874 return false; | 9929 return false; |
| 9875 } | 9930 } |
| 9876 | 9931 |
| 9877 @override | 9932 @override |
| 9878 int get hashCode { | 9933 int get hashCode { |
| 9879 int hash = 0; | 9934 int hash = 0; |
| 9880 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 9935 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 9881 return _JenkinsSmiHash.finish(hash); | 9936 return _JenkinsSmiHash.finish(hash); |
| 9882 } | 9937 } |
| 9883 } | 9938 } |
| OLD | NEW |