ErrorProcessor class

Process errors by filtering or changing associated DiagnosticSeverity.

Constructors

ErrorProcessor(String code, [DiagnosticSeverity? severity])
Create an error processor that assigns errors with this code the given severity.
ErrorProcessor.ignore(String code)
Create an error processor that ignores the given error by code.
factory

Properties

code → String
The code name of the associated error.
final
description → String
The string that unique describes the processor.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity → DiagnosticSeverity?
The desired severity of the processed error.
final

Methods

appliesTo(Diagnostic diagnostic) → bool
Check if this processor applies to the given diagnostic.
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

Static Methods

getProcessor(AnalysisOptions? analysisOptions, Diagnostic diagnostic) → ErrorProcessor?
Returns an error processor associated in the analysisOptions for the given diagnostic, or null if none is found.