DartAssist class abstract
A base class for creating assists inside Dart files.
For usage information, see https://github.com/invertase/dart_custom_lint/blob/main/docs/assists.md#Defining-a-dart-assist
Constructors
Properties
-
filesToAnalyze
→ List<
String> -
A list of glob patterns matching the files that run cares about.
no setteroverride
- 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.
inherited
-
startUp(
CustomLintResolver resolver, CustomLintContext context, SourceRange target) → Future< void> -
Emits lints for a given file.
override
-
testAnalyzeAndRun(
File file, SourceRange target) → Future< List< PrioritizedSourceChange> > - Analyze a Dart file and runs this assist in test mode.
-
testRun(
ResolvedUnitResult result, SourceRange target, {Pubspec? pubspec}) → Future< List< PrioritizedSourceChange> > - Runs this assist in test mode.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited