CorrectionProducer<T extends ParsedUnitResult> class
sealed
An object that can compute a correction (fix or assist) in a Dart file.
- Implementers
Properties
- applicability → CorrectionApplicability
-
The applicability of this producer.
no setter
- applyingBulkFixes → bool
-
Whether the fixes are being built for the bulk-fix request.
no setterinherited
-
assistArguments
→ List<
String> ? -
The arguments that should be used when composing the message for an
assist, or
null
if the assist message has no parameters or if this producer doesn't support assists.no setter - assistKind → AssistKind?
-
The assist kind that should be used to build an assist, or
null
if this producer doesn't support assists.no setter - canBeAppliedAcrossFiles → bool
-
Whether this producer can be used to apply a correction in multiple
positions simultaneously in bulk across multiple files and/or at the same
time as applying corrections from other producers.
no setter
- canBeAppliedAcrossSingleFile → bool
-
Whether this producer can be used to apply a correction in multiple
positions simultaneously across a file.
no setter
- canBeAppliedAutomatically → bool
-
Whether this producer can be used to apply a correction automatically when
code could be incomplete, as well as in multiple positions simultaneously
in bulk across multiple files and/or at the same time as applying
corrections from other producers.
no setter
- coveringNode → AstNode?
-
The most deeply nested node that completely covers the highlight region of
the diagnostic, or
null
if there is no diagnostic or if such a node does not exist.no setter - defaultEol → String
-
The default EOL to be used for new files and files that do not have EOLs.
no setterinherited
- diagnostic → Diagnostic?
-
The diagnostic being fixed, or
null
if this producer is being used to produce an assist.no setterinherited - diagnosticLength → int?
-
The length of the source range associated with the diagnostic being
fixed, or
null
if there is no diagnostic.no setter - diagnosticOffset → int?
-
The offset of the source range associated with the diagnostic being
fixed, or
null
if there is no diagnostic.no setter - errorLength → int?
-
no setter
- errorOffset → int?
-
no setter
- file → String
-
no setterinherited
-
fixArguments
→ List<
String> ? -
The arguments that should be used when composing the message for a fix, or
null
if the fix message has no parameters or if this producer doesn't support fixes.no setter - fixKind → FixKind?
-
The fix kind that should be used to build a fix, or
null
if this producer doesn't support fixes.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- libraryResult → ParsedLibraryResult
-
no setterinherited
-
multiFixArguments
→ List<
String> ? -
The arguments that should be used when composing the message for a
multi-fix, or
null
if the fix message has no parameters or if this producer doesn't support multi-fixes.no setter - multiFixKind → FixKind?
-
The fix kind that should be used to build a multi-fix, or
null
if this producer doesn't support multi-fixes.no setter - node → AstNode
-
no setterinherited
- resourceProvider → ResourceProvider
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionEnd → int
-
no setterinherited
- selectionLength → int
-
no setterinherited
- selectionOffset → int
-
no setterinherited
- sessionHelper → AnalysisSessionHelper
-
no setterinherited
- token → Token
-
no setterinherited
- unit → CompilationUnit
-
no setterinherited
- unitResult → ParsedUnitResult
-
no setterinherited
- utils → CorrectionUtils
-
no setterinherited
Methods
-
compute(
ChangeBuilder builder) → Future< void> -
Computes the changes for this producer using
builder
. -
getCodeStyleOptions(
File file) → CodeStyleOptions -
inherited
-
getEnclosingFunctionBody(
) → FunctionBody? -
Returns the function body of the most deeply nested method or function
that encloses the
node
, ornull
if the node is not in a method or function.inherited -
getRangeText(
SourceRange range) → String -
Returns the text of the given
range
in the unit.inherited -
getTopLevelDeclarations(
String baseName) → Future< Map< LibraryElement, Element> > -
Returns the mapping from a library (that is available to this context) to
a top-level declaration that is exported (not necessary declared) by this
library, and has the requested base name.
inherited
-
isOperatorSelected(
BinaryExpression binaryExpression) → bool -
Returns whether the selection covers an operator of the given
binaryExpression
.inherited -
librariesWithExtensions(
Name memberName) → Stream< LibraryElement> -
Returns libraries with extensions that declare non-static public
extension members with the
memberName
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited