RefactoringProblemSeverity enum

RefactoringProblemSeverity

enum { INFO WARNING ERROR FATAL }

Clients may not extend, implement or mix-in this class.

Inheritance
Available extensions

Values

INFO → const RefactoringProblemSeverity

A minor code problem. No example, because it is not used yet.

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.

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.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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({ClientUriConverter? clientUriConverter}) 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

values → const List<RefactoringProblemSeverity>
A constant List of the values in this enum, in order of their declaration.