DiagnosticSeverity class
The severity of an DiagnosticCode.
- Implemented types
- Annotations
-
- @AnalyzerPublicApi(message: 'exported by package:analyzer/error/error.dart')
Constructors
- DiagnosticSeverity.new(String name, int ordinal, String machineCode, String displayName)
-
const
Properties
- displayName → String
-
The name of the severity used when producing readable output.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- machineCode → String
-
The name of the severity used when producing machine output.
final
- name → String
-
final
- ordinal → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
DiagnosticSeverity other) → int -
Compares this object to another object.
override
-
max(
DiagnosticSeverity severity) → DiagnosticSeverity - Return the severity constant that represents the greatest severity.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- ERROR → const DiagnosticSeverity
- The severity representing an error.
- INFO → const DiagnosticSeverity
- The severity representing an informational level analysis issue.
- NONE → const DiagnosticSeverity
- The severity representing a non-error. This is never used for any error code, but is useful for clients.
-
values
→ const List<
DiagnosticSeverity> - WARNING → const DiagnosticSeverity
-
The severity representing a warning. Warnings can become errors if the
-Werror
command line flag is specified.