| 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/tool/spec/generate_files". | 7 // "pkg/analysis_server/tool/spec/generate_files". |
| 8 | 8 |
| 9 part of protocol; | 9 part of protocol; |
| 10 /** | 10 /** |
| (...skipping 7631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7642 * | 7642 * |
| 7643 * enum { | 7643 * enum { |
| 7644 * CONVERT_GETTER_TO_METHOD | 7644 * CONVERT_GETTER_TO_METHOD |
| 7645 * CONVERT_METHOD_TO_GETTER | 7645 * CONVERT_METHOD_TO_GETTER |
| 7646 * EXTRACT_LOCAL_VARIABLE | 7646 * EXTRACT_LOCAL_VARIABLE |
| 7647 * EXTRACT_METHOD | 7647 * EXTRACT_METHOD |
| 7648 * INLINE_LOCAL_VARIABLE | 7648 * INLINE_LOCAL_VARIABLE |
| 7649 * INLINE_METHOD | 7649 * INLINE_METHOD |
| 7650 * MOVE_FILE | 7650 * MOVE_FILE |
| 7651 * RENAME | 7651 * RENAME |
| 7652 * SORT_MEMBERS |
| 7652 * } | 7653 * } |
| 7653 */ | 7654 */ |
| 7654 class RefactoringKind { | 7655 class RefactoringKind { |
| 7655 static const CONVERT_GETTER_TO_METHOD = const RefactoringKind._("CONVERT_GETTE
R_TO_METHOD"); | 7656 static const CONVERT_GETTER_TO_METHOD = const RefactoringKind._("CONVERT_GETTE
R_TO_METHOD"); |
| 7656 | 7657 |
| 7657 static const CONVERT_METHOD_TO_GETTER = const RefactoringKind._("CONVERT_METHO
D_TO_GETTER"); | 7658 static const CONVERT_METHOD_TO_GETTER = const RefactoringKind._("CONVERT_METHO
D_TO_GETTER"); |
| 7658 | 7659 |
| 7659 static const EXTRACT_LOCAL_VARIABLE = const RefactoringKind._("EXTRACT_LOCAL_V
ARIABLE"); | 7660 static const EXTRACT_LOCAL_VARIABLE = const RefactoringKind._("EXTRACT_LOCAL_V
ARIABLE"); |
| 7660 | 7661 |
| 7661 static const EXTRACT_METHOD = const RefactoringKind._("EXTRACT_METHOD"); | 7662 static const EXTRACT_METHOD = const RefactoringKind._("EXTRACT_METHOD"); |
| 7662 | 7663 |
| 7663 static const INLINE_LOCAL_VARIABLE = const RefactoringKind._("INLINE_LOCAL_VAR
IABLE"); | 7664 static const INLINE_LOCAL_VARIABLE = const RefactoringKind._("INLINE_LOCAL_VAR
IABLE"); |
| 7664 | 7665 |
| 7665 static const INLINE_METHOD = const RefactoringKind._("INLINE_METHOD"); | 7666 static const INLINE_METHOD = const RefactoringKind._("INLINE_METHOD"); |
| 7666 | 7667 |
| 7667 static const MOVE_FILE = const RefactoringKind._("MOVE_FILE"); | 7668 static const MOVE_FILE = const RefactoringKind._("MOVE_FILE"); |
| 7668 | 7669 |
| 7669 static const RENAME = const RefactoringKind._("RENAME"); | 7670 static const RENAME = const RefactoringKind._("RENAME"); |
| 7670 | 7671 |
| 7672 static const SORT_MEMBERS = const RefactoringKind._("SORT_MEMBERS"); |
| 7673 |
| 7671 final String name; | 7674 final String name; |
| 7672 | 7675 |
| 7673 const RefactoringKind._(this.name); | 7676 const RefactoringKind._(this.name); |
| 7674 | 7677 |
| 7675 factory RefactoringKind(String name) { | 7678 factory RefactoringKind(String name) { |
| 7676 switch (name) { | 7679 switch (name) { |
| 7677 case "CONVERT_GETTER_TO_METHOD": | 7680 case "CONVERT_GETTER_TO_METHOD": |
| 7678 return CONVERT_GETTER_TO_METHOD; | 7681 return CONVERT_GETTER_TO_METHOD; |
| 7679 case "CONVERT_METHOD_TO_GETTER": | 7682 case "CONVERT_METHOD_TO_GETTER": |
| 7680 return CONVERT_METHOD_TO_GETTER; | 7683 return CONVERT_METHOD_TO_GETTER; |
| 7681 case "EXTRACT_LOCAL_VARIABLE": | 7684 case "EXTRACT_LOCAL_VARIABLE": |
| 7682 return EXTRACT_LOCAL_VARIABLE; | 7685 return EXTRACT_LOCAL_VARIABLE; |
| 7683 case "EXTRACT_METHOD": | 7686 case "EXTRACT_METHOD": |
| 7684 return EXTRACT_METHOD; | 7687 return EXTRACT_METHOD; |
| 7685 case "INLINE_LOCAL_VARIABLE": | 7688 case "INLINE_LOCAL_VARIABLE": |
| 7686 return INLINE_LOCAL_VARIABLE; | 7689 return INLINE_LOCAL_VARIABLE; |
| 7687 case "INLINE_METHOD": | 7690 case "INLINE_METHOD": |
| 7688 return INLINE_METHOD; | 7691 return INLINE_METHOD; |
| 7689 case "MOVE_FILE": | 7692 case "MOVE_FILE": |
| 7690 return MOVE_FILE; | 7693 return MOVE_FILE; |
| 7691 case "RENAME": | 7694 case "RENAME": |
| 7692 return RENAME; | 7695 return RENAME; |
| 7696 case "SORT_MEMBERS": |
| 7697 return SORT_MEMBERS; |
| 7693 } | 7698 } |
| 7694 throw new Exception('Illegal enum value: $name'); | 7699 throw new Exception('Illegal enum value: $name'); |
| 7695 } | 7700 } |
| 7696 | 7701 |
| 7697 factory RefactoringKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 7702 factory RefactoringKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
| 7698 if (json is String) { | 7703 if (json is String) { |
| 7699 try { | 7704 try { |
| 7700 return new RefactoringKind(json); | 7705 return new RefactoringKind(json); |
| 7701 } catch(_) { | 7706 } catch(_) { |
| 7702 // Fall through | 7707 // Fall through |
| (...skipping 2498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10201 return false; | 10206 return false; |
| 10202 } | 10207 } |
| 10203 | 10208 |
| 10204 @override | 10209 @override |
| 10205 int get hashCode { | 10210 int get hashCode { |
| 10206 int hash = 0; | 10211 int hash = 0; |
| 10207 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10212 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 10208 return _JenkinsSmiHash.finish(hash); | 10213 return _JenkinsSmiHash.finish(hash); |
| 10209 } | 10214 } |
| 10210 } | 10215 } |
| 10216 /** |
| 10217 * sortMembers feedback |
| 10218 */ |
| 10219 class SortMembersFeedback { |
| 10220 @override |
| 10221 bool operator==(other) { |
| 10222 if (other is SortMembersFeedback) { |
| 10223 return true; |
| 10224 } |
| 10225 return false; |
| 10226 } |
| 10227 |
| 10228 @override |
| 10229 int get hashCode { |
| 10230 return 173473419; |
| 10231 } |
| 10232 } |
| 10233 /** |
| 10234 * sortMembers options |
| 10235 */ |
| 10236 class SortMembersOptions { |
| 10237 @override |
| 10238 bool operator==(other) { |
| 10239 if (other is SortMembersOptions) { |
| 10240 return true; |
| 10241 } |
| 10242 return false; |
| 10243 } |
| 10244 |
| 10245 @override |
| 10246 int get hashCode { |
| 10247 return 99705880; |
| 10248 } |
| 10249 } |
| OLD | NEW |