Assist class abstract

A base class for assists.

Assists are more typically known as "refactoring". They are changes triggered by the user, without an associated problem. As opposed to a Fix, which represents a source change but is associated with an issue.

For creating assists inside Dart files, see DartAssist.

Suclassing Assist can be helpful if you wish to implement assists for non-Dart files (yaml, json, ...)

For usage information, see https://github.com/invertase/dart_custom_lint/blob/main/docs/assists.md

Implementers
Annotations
  • @immutable

Constructors

Assist()

Properties

filesToAnalyze List<String>
A list of glob patterns matching the files that run cares about.
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(CustomLintResolver resolver, ChangeReporter reporter, CustomLintContext context, SourceRange target) → void
Emits lints for a given file.
startUp(CustomLintResolver resolver, CustomLintContext context, SourceRange target) Future<void>
Emits lints for a given file.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited