ImplementDataClassMethods class
- Inheritance
-
- Object
- CorrectionProducer<ResolvedUnitResult>
- ResolvedCorrectionProducer
- ImplementDataClassMethods
Properties
-
analysisOptions
→ AnalysisOptions
-
no setterinherited
-
applicability
→ CorrectionApplicability
-
The applicability of this producer.
no setteroverride
-
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 setterinherited
-
assistKind
→ AssistKind?
-
The assist kind that should be used to build an assist, or
null if this
producer doesn't support assists.
no setteroverride
-
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 setterinherited
-
canBeAppliedAcrossSingleFile
→ bool
-
Whether this producer can be used to apply a correction in multiple
positions simultaneously across a file.
no setterinherited
-
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 setterinherited
-
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 setterinherited
-
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 setterinherited
-
diagnosticOffset
→ int?
-
The offset of the source range associated with the diagnostic being
fixed, or
null if there is no diagnostic.
no setterinherited
-
errorLength
→ int?
-
no setterinherited
-
errorOffset
→ int?
-
no setterinherited
-
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 setterinherited
-
fixKind
→ FixKind
-
The fix kind that should be used to build a fix, or
null if this
producer doesn't support fixes.
no setteroverride
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
inheritanceManager
→ InheritanceManager3
-
no setterinherited
-
inStaticContext
→ bool
-
Whether
node is in a static context.
no setterinherited
-
libraryElement2
→ LibraryElement
-
The library element for the library in which a correction is being
produced.
no setterinherited
-
libraryResult
→ ResolvedLibraryResult
-
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 setterinherited
-
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 setterinherited
-
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
-
typeProvider
→ TypeProvider
-
no setterinherited
-
typeSystem
→ TypeSystem
-
The type system appropriate to the library in which the correction is
requested.
no setterinherited
-
unit
→ CompilationUnit
-
no setterinherited
-
unitResult
→ ResolvedUnitResult
-
no setterinherited
-
utils
→ CorrectionUtils
-
no setterinherited
Methods
-
compute(ChangeBuilder builder)
→ Future<void>
-
Computes the changes for this producer using
builder.
override
-
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
-
getDeclarationNodeFromElement(InstanceElement element, {bool includeExtensions = false})
→ Future<CompilationUnitMember?>
-
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