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 analysis_server.plugin.protocol.protocol; | 9 part of analysis_server.plugin.protocol.protocol; |
10 | 10 |
(...skipping 13902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13913 * enum { | 13913 * enum { |
13914 * INFO | 13914 * INFO |
13915 * WARNING | 13915 * WARNING |
13916 * ERROR | 13916 * ERROR |
13917 * FATAL | 13917 * FATAL |
13918 * } | 13918 * } |
13919 * | 13919 * |
13920 * Clients may not extend, implement or mix-in this class. | 13920 * Clients may not extend, implement or mix-in this class. |
13921 */ | 13921 */ |
13922 class RefactoringProblemSeverity implements Enum { | 13922 class RefactoringProblemSeverity implements Enum { |
| 13923 /** |
| 13924 * A minor code problem. No example, because it is not used yet. |
| 13925 */ |
13923 static const INFO = const RefactoringProblemSeverity._("INFO"); | 13926 static const INFO = const RefactoringProblemSeverity._("INFO"); |
13924 | 13927 |
| 13928 /** |
| 13929 * A minor code problem. For example names of local variables should be camel |
| 13930 * case and start with a lower case letter. Staring the name of a variable |
| 13931 * with an upper case is OK from the language point of view, but it is nice |
| 13932 * to warn the user. |
| 13933 */ |
13925 static const WARNING = const RefactoringProblemSeverity._("WARNING"); | 13934 static const WARNING = const RefactoringProblemSeverity._("WARNING"); |
13926 | 13935 |
| 13936 /** |
| 13937 * The refactoring technically can be performed, but there is a logical |
| 13938 * problem. For example the name of a local variable being extracted |
| 13939 * conflicts with another name in the scope, or duplicate parameter names in |
| 13940 * the method being extracted, or a conflict between a parameter name and a |
| 13941 * local variable, etc. In some cases the location of the problem is also |
| 13942 * provided, so the IDE can show user the location and the problem, and let |
| 13943 * the user decide whether she wants to perform the refactoring. For example |
| 13944 * the name conflict might be expected, and the user wants to fix it |
| 13945 * afterwards. |
| 13946 */ |
13927 static const ERROR = const RefactoringProblemSeverity._("ERROR"); | 13947 static const ERROR = const RefactoringProblemSeverity._("ERROR"); |
13928 | 13948 |
| 13949 /** |
| 13950 * A fatal error, which prevents performing the refactoring. For example the |
| 13951 * name of a local variable being extracted is not a valid identifier, or |
| 13952 * selection is not a valid expression. |
| 13953 */ |
13929 static const FATAL = const RefactoringProblemSeverity._("FATAL"); | 13954 static const FATAL = const RefactoringProblemSeverity._("FATAL"); |
13930 | 13955 |
13931 /** | 13956 /** |
13932 * A list containing all of the enum values that are defined. | 13957 * A list containing all of the enum values that are defined. |
13933 */ | 13958 */ |
13934 static const List<RefactoringProblemSeverity> VALUES = const <RefactoringProbl
emSeverity>[INFO, WARNING, ERROR, FATAL]; | 13959 static const List<RefactoringProblemSeverity> VALUES = const <RefactoringProbl
emSeverity>[INFO, WARNING, ERROR, FATAL]; |
13935 | 13960 |
13936 final String name; | 13961 final String name; |
13937 | 13962 |
13938 const RefactoringProblemSeverity._(this.name); | 13963 const RefactoringProblemSeverity._(this.name); |
(...skipping 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16985 return false; | 17010 return false; |
16986 } | 17011 } |
16987 | 17012 |
16988 @override | 17013 @override |
16989 int get hashCode { | 17014 int get hashCode { |
16990 int hash = 0; | 17015 int hash = 0; |
16991 hash = JenkinsSmiHash.combine(hash, newName.hashCode); | 17016 hash = JenkinsSmiHash.combine(hash, newName.hashCode); |
16992 return JenkinsSmiHash.finish(hash); | 17017 return JenkinsSmiHash.finish(hash); |
16993 } | 17018 } |
16994 } | 17019 } |
OLD | NEW |