AbstractAnalysisRule class sealed
Describes a static analysis rule, either a lint rule (which must be enabled via analysis options) or a warning rule (which is enabled by default).
- Implementers
Properties
- canUseParsedResult → bool
-
Indicates whether this analysis rule can work with just the parsed
information or if it requires a resolved unit.
no setter
- description → String
-
Short description suitable for display in console output and IDEs.
final
-
diagnosticCodes
→ List<
DiagnosticCode> -
The diagnostic codes associated with this analysis rule.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
incompatibleRules
→ List<
String> -
A list of incompatible rule names.
no setter
- name → String
-
The rule name.
final
- pubspecVisitor → PubspecVisitor?
-
A visitor that visits a
Pubspec
to perform analysis.no setter - reporter ← DiagnosticReporter
-
Sets the DiagnosticReporter for the CompilationUnit currently being
visited.
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → RuleState
-
The state of this analysis rule.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerNodeProcessors(
RuleVisitorRegistry registry, RuleContext context) → void -
Registers node processors in the given
registry
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited