CorrectionProducerWithDiagnostic class
abstract
Properties
analysisOptions
→ AnalysisOptions
no setter inherited
applicability
→ CorrectionApplicability
The applicability of this producer.
no setter inherited
applyingBulkFixes
→ bool
Whether the fixes are being built for the bulk-fix request.
no setter inherited
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 inherited
assistKind
→ AssistKind?
The assist kind that should be used to build an assist, or null
if this
producer doesn't support assists.
no setter inherited
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 inherited
canBeAppliedAcrossSingleFile
→ bool
Whether this producer can be used to apply a correction in multiple
positions simultaneously across a file.
no setter inherited
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 inherited
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 inherited
defaultEol
→ String
The default EOL to be used for new files and files that do not have EOLs.
no setter inherited
diagnostic
→ Diagnostic
The diagnostic being fixed, or null
if this producer is being
used to produce an assist.
no setter
diagnosticLength
→ int ?
The length of the source range associated with the diagnostic being
fixed, or null
if there is no diagnostic.
no setter inherited
diagnosticOffset
→ int ?
The offset of the source range associated with the diagnostic being
fixed, or null
if there is no diagnostic.
no setter inherited
errorLength
→ int ?
no setter inherited
errorOffset
→ int ?
no setter inherited
file
→ String
no setter inherited
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 inherited
fixKind
→ FixKind?
The fix kind that should be used to build a fix, or null
if this
producer doesn't support fixes.
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
inheritanceManager
→ InheritanceManager3
no setter inherited
inStaticContext
→ bool
Whether node
is in a static context.
no setter inherited
libraryElement2
→ LibraryElement
The library element for the library in which a correction is being
produced.
no setter inherited
libraryResult
→ ResolvedLibraryResult
no setter inherited
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 inherited
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 inherited
node
→ AstNode
no setter inherited
resourceProvider
→ ResourceProvider
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
selectionEnd
→ int
no setter inherited
selectionLength
→ int
no setter inherited
selectionOffset
→ int
no setter inherited
sessionHelper
→ AnalysisSessionHelper
no setter inherited
token
→ Token
no setter inherited
typeProvider
→ TypeProvider
no setter inherited
typeSystem
→ TypeSystem
The type system appropriate to the library in which the correction is
requested.
no setter inherited
unit
→ CompilationUnit
no setter inherited
unitResult
→ ResolvedUnitResult
no setter inherited
utils
→ CorrectionUtils
no setter inherited
Methods
compute (ChangeBuilder builder )
→ Future <void >
Computes the changes for this producer using builder
.
inherited
getClassDeclaration (ClassFragment fragment )
→ Future <ClassDeclaration? >
Returns the class declaration for the given fragment
, or null
if there
is no such class.
inherited
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
getEnumDeclaration (EnumFragment fragment )
→ Future <EnumDeclaration? >
Returns the class declaration for the given fragment
, or null
if there
is no such class.
inherited
getExtensionDeclaration (ExtensionFragment fragment )
→ Future <ExtensionDeclaration? >
Returns the extension declaration for the given fragment
, or null
if
there is no such extension.
inherited
getExtensionTypeDeclaration (ExtensionTypeFragment fragment )
→ Future <ExtensionTypeDeclaration? >
Returns the extension type for the given fragment
, or null
if there
is no such extension type.
inherited
getMixinDeclaration (MixinFragment fragment )
→ Future <MixinDeclaration? >
Returns the mixin declaration for the given fragment
, or null
if there
is no such mixin.
inherited
getRangeText (SourceRange range )
→ String
Returns the text of the given range
in the unit.
inherited
getTargetInterfaceElement (Expression target )
→ InterfaceElement?
Returns the class element associated with the target
, or null
if there
is no such element.
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
inferUndefinedExpressionType (Expression expression )
→ DartType?
Returns an expected DartType
of expression
, may be null
if cannot be
inferred.
inherited
isEnabled (Feature feature )
→ bool
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