RefactoringProblemSeverity class
RefactoringProblemSeverity
enum { INFO WARNING ERROR FATAL }
Clients may not extend, implement or mix-in this class.
- Implemented types
Constructors
- RefactoringProblemSeverity(String name)
-
factory
- RefactoringProblemSeverity.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the enumerated value. This should match the name of the static
getter which provides access to this enumerated value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
max(
RefactoringProblemSeverity? a, RefactoringProblemSeverity? b) → RefactoringProblemSeverity? - Returns the RefactoringProblemSeverity with the maximal severity.
Constants
- ERROR → const RefactoringProblemSeverity
- The refactoring technically can be performed, but there is a logical problem. For example the name of a local variable being extracted conflicts with another name in the scope, or duplicate parameter names in the method being extracted, or a conflict between a parameter name and a local variable, etc. In some cases the location of the problem is also provided, so the IDE can show user the location and the problem, and let the user decide whether they want to perform the refactoring. For example the name conflict might be expected, and the user wants to fix it afterwards.
- FATAL → const RefactoringProblemSeverity
- A fatal error, which prevents performing the refactoring. For example the name of a local variable being extracted is not a valid identifier, or selection is not a valid expression.
- INFO → const RefactoringProblemSeverity
- A minor code problem. No example, because it is not used yet.
-
VALUES
→ const List<
RefactoringProblemSeverity> - A list containing all of the enum values that are defined.
- WARNING → const RefactoringProblemSeverity
- A minor code problem. For example names of local variables should be camel case and start with a lower case letter. Staring the name of a variable with an upper case is OK from the language point of view, but it is nice to warn the user.