| 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 7629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7640 /** | 7640 /** |
| 7641 * RefactoringKind | 7641 * RefactoringKind |
| 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 * RENAME | 7651 * RENAME |
| 7651 * } | 7652 * } |
| 7652 */ | 7653 */ |
| 7653 class RefactoringKind { | 7654 class RefactoringKind { |
| 7654 static const CONVERT_GETTER_TO_METHOD = const RefactoringKind._("CONVERT_GETTE
R_TO_METHOD"); | 7655 static const CONVERT_GETTER_TO_METHOD = const RefactoringKind._("CONVERT_GETTE
R_TO_METHOD"); |
| 7655 | 7656 |
| 7656 static const CONVERT_METHOD_TO_GETTER = const RefactoringKind._("CONVERT_METHO
D_TO_GETTER"); | 7657 static const CONVERT_METHOD_TO_GETTER = const RefactoringKind._("CONVERT_METHO
D_TO_GETTER"); |
| 7657 | 7658 |
| 7658 static const EXTRACT_LOCAL_VARIABLE = const RefactoringKind._("EXTRACT_LOCAL_V
ARIABLE"); | 7659 static const EXTRACT_LOCAL_VARIABLE = const RefactoringKind._("EXTRACT_LOCAL_V
ARIABLE"); |
| 7659 | 7660 |
| 7660 static const EXTRACT_METHOD = const RefactoringKind._("EXTRACT_METHOD"); | 7661 static const EXTRACT_METHOD = const RefactoringKind._("EXTRACT_METHOD"); |
| 7661 | 7662 |
| 7662 static const INLINE_LOCAL_VARIABLE = const RefactoringKind._("INLINE_LOCAL_VAR
IABLE"); | 7663 static const INLINE_LOCAL_VARIABLE = const RefactoringKind._("INLINE_LOCAL_VAR
IABLE"); |
| 7663 | 7664 |
| 7664 static const INLINE_METHOD = const RefactoringKind._("INLINE_METHOD"); | 7665 static const INLINE_METHOD = const RefactoringKind._("INLINE_METHOD"); |
| 7665 | 7666 |
| 7667 static const MOVE_FILE = const RefactoringKind._("MOVE_FILE"); |
| 7668 |
| 7666 static const RENAME = const RefactoringKind._("RENAME"); | 7669 static const RENAME = const RefactoringKind._("RENAME"); |
| 7667 | 7670 |
| 7668 final String name; | 7671 final String name; |
| 7669 | 7672 |
| 7670 const RefactoringKind._(this.name); | 7673 const RefactoringKind._(this.name); |
| 7671 | 7674 |
| 7672 factory RefactoringKind(String name) { | 7675 factory RefactoringKind(String name) { |
| 7673 switch (name) { | 7676 switch (name) { |
| 7674 case "CONVERT_GETTER_TO_METHOD": | 7677 case "CONVERT_GETTER_TO_METHOD": |
| 7675 return CONVERT_GETTER_TO_METHOD; | 7678 return CONVERT_GETTER_TO_METHOD; |
| 7676 case "CONVERT_METHOD_TO_GETTER": | 7679 case "CONVERT_METHOD_TO_GETTER": |
| 7677 return CONVERT_METHOD_TO_GETTER; | 7680 return CONVERT_METHOD_TO_GETTER; |
| 7678 case "EXTRACT_LOCAL_VARIABLE": | 7681 case "EXTRACT_LOCAL_VARIABLE": |
| 7679 return EXTRACT_LOCAL_VARIABLE; | 7682 return EXTRACT_LOCAL_VARIABLE; |
| 7680 case "EXTRACT_METHOD": | 7683 case "EXTRACT_METHOD": |
| 7681 return EXTRACT_METHOD; | 7684 return EXTRACT_METHOD; |
| 7682 case "INLINE_LOCAL_VARIABLE": | 7685 case "INLINE_LOCAL_VARIABLE": |
| 7683 return INLINE_LOCAL_VARIABLE; | 7686 return INLINE_LOCAL_VARIABLE; |
| 7684 case "INLINE_METHOD": | 7687 case "INLINE_METHOD": |
| 7685 return INLINE_METHOD; | 7688 return INLINE_METHOD; |
| 7689 case "MOVE_FILE": |
| 7690 return MOVE_FILE; |
| 7686 case "RENAME": | 7691 case "RENAME": |
| 7687 return RENAME; | 7692 return RENAME; |
| 7688 } | 7693 } |
| 7689 throw new Exception('Illegal enum value: $name'); | 7694 throw new Exception('Illegal enum value: $name'); |
| 7690 } | 7695 } |
| 7691 | 7696 |
| 7692 factory RefactoringKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 7697 factory RefactoringKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
| 7693 if (json is String) { | 7698 if (json is String) { |
| 7694 try { | 7699 try { |
| 7695 return new RefactoringKind(json); | 7700 return new RefactoringKind(json); |
| (...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10196 return false; | 10201 return false; |
| 10197 } | 10202 } |
| 10198 | 10203 |
| 10199 @override | 10204 @override |
| 10200 int get hashCode { | 10205 int get hashCode { |
| 10201 int hash = 0; | 10206 int hash = 0; |
| 10202 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10207 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 10203 return _JenkinsSmiHash.finish(hash); | 10208 return _JenkinsSmiHash.finish(hash); |
| 10204 } | 10209 } |
| 10205 } | 10210 } |
| OLD | NEW |