ShimFieldImpl class

A manually-instantiated FieldElement.

Constructors

ShimFieldImpl(String name, DartType type)

Properties

augmentation ↔ FieldElementImpl?
getter/setter pairinherited
augmentationTarget → FieldElementImpl?
no setterinherited
augmentationTargetAny ↔ ElementImpl?
getter/setter pairinherited
baseElement → Element2?
The non-Member version of this element.
no setterinherited
children List<Element>
A list of this element's children.
no setterinherited
children2 List<Element2>
The children of this element.
no setterinherited
children3 List<Fragment>
The children of this fragment.
no setterinherited
codeLength int?
The length of the element's code, or null if the element is synthetic.
no setterinherited
codeOffset int?
The offset of the beginning of the element's code in the file that contains the element, or null if the element is synthetic.
no setterinherited
constantInitializer → Expression?
If this element represents a constant variable, and it has an initializer, a copy of the initializer for the constant. Otherwise null.
no setterinherited
context → AnalysisContext
The analysis context in which this element is defined.
no setterinherited
declaration → FieldElement
The declaration of this element.
no setterinherited
displayName String
The display name of this element, possibly the empty string if the element does not have a name.
no setterinherited
documentationComment String?
The content of the documentation comment (including delimiters) for this element, or null if this element does not or cannot have documentation.
getter/setter pairinherited
element ↔ FieldElement2
The element composed from this fragment and possibly other fragments.
getter/setter pairinherited
enclosingElement ↔ Element
The element that either physically or logically encloses this element.
getter/setter pairinherited
enclosingElement2 → Element2?
The element that either physically or logically encloses this element.
no setterinherited
enclosingElement3 ↔ Element
The element that either physically or logically encloses this element.
getter/setter pairinherited
enclosingFragment → Fragment?
The fragment that either physically or logically encloses this fragment.
no setterinherited
enclosingUnit → CompilationUnitElementImpl
Return the enclosing unit element (which might be the same as this), or null if this element is not contained in any compilation unit.
no setterinherited
evaluationResult ↔ Constant?
Return the result of evaluating this variable's initializer as a compile-time constant expression, or null if this variable is not a 'const' variable, if it does not have an initializer, or if the compilation unit containing the variable has not been resolved.
getter/setter pairinherited
getter ↔ PropertyAccessorElementImpl?
The getter associated with this element.
getter/setter pairinherited
getter2 → GetterFragment?
The getter associated with this variable.
no setterinherited
hasAlwaysThrows bool
Whether the element has an annotation of the form @alwaysThrows.
no setterinherited
hasDeprecated bool
Whether the element has an annotation of the form @deprecated or @Deprecated('..').
no setterinherited
hasDoNotStore bool
Whether the element has an annotation of the form @doNotStore.
no setterinherited
hasDoNotSubmit bool
Whether the element has an annotation of the form @doNotSubmit.
no setterinherited
hasFactory bool
Whether the element has an annotation of the form @factory.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasImmutable bool
Whether the element has an annotation of the form @immutable.
no setterinherited
hasImplicitType bool
Whether the variable element did not have an explicit type specified for it.
getter/setter pairinherited
hasInitializer bool
Set whether this variable has an initializer.
getter/setter pairinherited
hasInternal bool
Whether the element has an annotation of the form @internal.
no setterinherited
hasIsTest bool
Whether the element has an annotation of the form @isTest.
no setterinherited
hasIsTestGroup bool
Whether the element has an annotation of the form @isTestGroup.
no setterinherited
hasJS bool
Whether the element has an annotation of the form @JS(..).
no setterinherited
hasLiteral bool
Whether the element has an annotation of the form @literal.
no setterinherited
hasMustBeConst bool
Whether the element has an annotation of the form @mustBeConst.
no setterinherited
hasMustBeOverridden bool
Whether the element has an annotation of the form @mustBeOverridden.
no setterinherited
hasMustCallSuper bool
Whether the element has an annotation of the form @mustCallSuper.
no setterinherited
hasNonVirtual bool
Whether the element has an annotation of the form @nonVirtual.
no setterinherited
hasOptionalTypeArgs bool
Whether the element has an annotation of the form @optionalTypeArgs.
no setterinherited
hasOverride bool
Whether the element has an annotation of the form @override.
no setterinherited
hasPragmaVmEntryPoint bool
Return true if this element has an annotation of the form @pragma("vm:entry-point").
no setterinherited
hasProtected bool
Whether the element has an annotation of the form @protected.
no setterinherited
hasRedeclare bool
Whether the element has an annotation of the form @redeclare.
no setterinherited
hasReopen bool
Whether the element has an annotation of the form @reopen.
no setterinherited
hasRequired bool
Whether the element has an annotation of the form @required.
no setterinherited
hasSealed bool
Whether the element has an annotation of the form @sealed.
no setterinherited
hasSetter bool
Return true if this variable needs the setter.
no setterinherited
hasUseResult bool
Whether the element has an annotation of the form @useResult or @UseResult('..').
no setterinherited
hasVisibleForOverriding bool
Whether the element has an annotation of the form @visibleForOverriding.
no setterinherited
hasVisibleForTemplate bool
Whether the element has an annotation of the form @visibleForTemplate.
no setterinherited
hasVisibleForTesting bool
Whether the element has an annotation of the form @visibleForTesting.
no setterinherited
hasVisibleOutsideTemplate bool
Whether the element has an annotation of the form @visibleOutsideTemplate.
no setterinherited
id int
The unique integer identifier of this element.
finalinherited
identifier String
Return an identifier that uniquely identifies this element among the children of this element's parent.
no setterinherited
inheritsCovariant bool
True if this field inherits from a covariant parameter. This happens when it overrides a field in a supertype that is covariant.
getter/setter pairinherited
isAbstract bool
Whether the field is abstract.
getter/setter pairinherited
isAugmentation bool
getter/setter pairinherited
isAugmentationChainStart bool
getter/setter pairinherited
isConst bool
Whether the variable was declared with the 'const' modifier.
getter/setter pairinherited
isConstantEvaluated bool
Return whether this constant is evaluated.
no setterinherited
isCovariant bool
Whether the field was explicitly marked as being covariant.
getter/setter pairinherited
isEnumConstant bool
Whether the element is an enum constant.
getter/setter pairinherited
isExternal bool
Whether the field was explicitly marked as being external.
getter/setter pairinherited
isFinal bool
Whether the variable was declared with the 'final' modifier.
getter/setter pairinherited
isLate bool
Whether the variable uses late evaluation semantics.
getter/setter pairinherited
isNonFunctionTypeAliasesEnabled bool
no setterinherited
isPrivate bool
Whether the element is private.
no setterinherited
isPromotable bool
Whether the field can be type promoted.
getter/setter pairinherited
isPublic bool
Whether the element is public.
no setterinherited
isStatic bool
Whether the element is a static variable, as per section 8 of the Dart Language Specification:
getter/setter pairinherited
isSynthetic bool
Whether the element is synthetic.
getter/setter pairinherited
isSyntheticEnumField bool
Return true if this element is a synthetic enum field.
no setterinherited
kind → ElementKind
The kind of element that this is.
no setterinherited
library → LibraryElementImpl
Library that contains this element.
no setterinherited
library2 → LibraryElement2?
Library that contains this element.
no setterinherited
libraryFragment → LibraryFragment
The library fragment that contains this fragment.
no setterinherited
librarySource → Source
If this target is associated with a library, return the source of the library's defining compilation unit; otherwise return null.
no setterinherited
linkedData ↔ ElementLinkedData<ElementImpl>?
getter/setter pairinherited
location → ElementLocation
The location of this element in the element model.
no setterinherited
macroDiagnostics List<AnalyzerMacroDiagnostic>
Diagnostics registered while applying macros to this element.
getter/setter pairinherited
metadata List<ElementAnnotationImpl>
All of the metadata associated with this element.
getter/setter pairinherited
name String
The name of this element, or null if this element does not have a name.
getter/setter pairinherited
nameLength int
The length of the name of this element in the file that contains the declaration of this element, or 0 if this element does not have a name.
no setterinherited
nameOffset int
The offset of the name of this element in the file that contains the declaration of this element, or -1 if this element is synthetic, does not have a name, or otherwise does not have an offset.
getter/setter pairinherited
nextFragment → FieldFragment?
The next fragment in the augmentation chain.
no setterinherited
nonSynthetic → Element
The non-synthetic element that caused this element to be created.
no setterinherited
nonSynthetic2 → Element2
The non-synthetic element that caused this element to be created.
no setterinherited
previousFragment → FieldFragment?
The previous fragment in the augmentation chain.
no setterinherited
reference ↔ Reference?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session → AnalysisSession?
The analysis session in which this element is defined.
no setterinherited
setter ↔ PropertyAccessorElementImpl?
The setter associated with this element, or null if the element is effectively final and therefore does not have a setter associated with it.
getter/setter pairinherited
setter2 → SetterFragment?
The setter associated with this variable.
no setterinherited
shouldUseTypeForInitializerInference bool
getter/setter pairinherited
sinceSdkVersion → Version?
The version where this SDK API was added.
no setterinherited
source → Source
Return the source associated with this target, or null if this target is not associated with a source.
no setterinherited
type ↔ DartType
The declared type of this variable.
finalgetter/setter pairinherited-setter
typeInference ↔ PropertyInducingElementTypeInference?
This field is set during linking, and performs type inference for this property. After linking this field is always null.
getter/setter pairinherited
typeInferenceError ↔ TopLevelInferenceError?
The error reported during type inference for this variable, or null if this variable is not a subject of type inference, or there was no error.
getter/setter pairinherited

Methods

accept<T>(ElementVisitor<T> visitor) → T?
Uses the given visitor to visit this element.
inherited
addMacroDiagnostic(AnalyzerMacroDiagnostic diagnostic) → void
inherited
appendTo(ElementDisplayStringBuilder builder) → void
Append a textual representation of this element to the given builder.
inherited
bindReference(Reference reference) → void
inherited
computeConstantValue() → DartObject?
Returns a representation of the value of this variable, forcing the value to be computed if it had not previously been computed, or null if either this variable was not declared with the 'const' modifier or if the value of this variable could not be computed because of errors.
inherited
createImplicitGetter(Reference reference) → PropertyAccessorElementImpl
inherited
createImplicitSetter(Reference reference) → PropertyAccessorElementImpl
inherited
displayString2({bool multiline = false, bool preferTypeAlias = false}) String
The presentation of this element as it should appear when presented to users.
inherited
encloseElement(ElementImpl element) → void
Set this element as the enclosing element for given element.
inherited
encloseElements(List<Element> elements) → void
Set this element as the enclosing element for given elements.
inherited
getDisplayString({bool withNullability = true, bool multiline = false, bool preferTypeAlias = false}) String
Returns the presentation of this element as it should appear when presented to users.
inherited
getExtendedDisplayName(String? shortName) String
Returns a display name for the given element that includes the path to the compilation unit in which the type is defined. If shortName is null then displayName will be used as the name of this element. Otherwise the provided name will be used.
inherited
hasModifier(Modifier modifier) bool
Return true if this element has the given modifier associated with it.
inherited
isAccessibleIn(LibraryElement library) bool
Whether the element, assuming that it is within scope, is accessible to code in the given library.
inherited
isAccessibleIn2(LibraryElement2 library) bool
Whether the element, assuming that it is within scope, is accessible to code in the given library.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetMetadataFlags() → void
inherited
setCodeRange(int offset, int length) → void
Set the code range for this element.
inherited
setLinkedData(Reference reference, ElementLinkedData<ElementImpl> linkedData) → void
inherited
setModifier(Modifier modifier, bool value) → void
Set whether the given modifier is associated with this element to correspond to the given value.
inherited
thisOrAncestorMatching<E extends Element>(bool predicate(Element)) → E?
Returns either this element or the most immediate ancestor of this element for which the predicate returns true, or null if there is no such element.
inherited
thisOrAncestorMatching2<E extends Element2>(bool predicate(Element2)) → E?
Returns either this element or the most immediate ancestor of this element for which the predicate returns true.
inherited
thisOrAncestorMatching3<E extends Element>(bool predicate(Element)) → E?
Returns either this element or the most immediate ancestor of this element for which the predicate returns true, or null if there is no such element.
inherited
thisOrAncestorOfType<E extends Element>() → E?
Returns either this element or the most immediate ancestor of this element that has the given type, or null if there is no such element.
inherited
thisOrAncestorOfType2<E extends Element2>() → E?
Returns either this element or the most immediate ancestor of this element that has the given type.
inherited
thisOrAncestorOfType3<E extends Element>() → E?
Returns either this element or the most immediate ancestor of this element that has the given type, or null if there is no such element.
inherited
toString() String
A string representation of this object.
inherited
visitChildren(ElementVisitor visitor) → void
Use the given visitor to visit all of the children of this element. There is no guarantee of the order in which the children will be visited.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited