MultiCorrectionProducer class abstract

An object that can dynamically compute multiple corrections (fixes or assists).

Constructors

MultiCorrectionProducer({required CorrectionProducerContext context})

Properties

applyingBulkFixes → bool
Whether the fixes are being built for the bulk-fix request.
no setterinherited
context → CorrectionProducerContext
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
file → String
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
libraryElement2 → LibraryElement
The library element for the library in which a correction is being produced.
no setter
libraryResult → ResolvedLibraryResult
no setter
node → AstNode
no setterinherited
producers → Future<List<ResolvedCorrectionProducer>>
The individual producers generated by this producer.
no setter
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 → ResolvedUnitResult
no setter
utils → CorrectionUtils
no setterinherited

Methods

getCodeStyleOptions(File file) → CodeStyleOptions
inherited
getEnclosingFunctionBody() → FunctionBody?
Returns the function body of the most deeply nested method or function that encloses the node, or null 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