ShimFieldImpl class
A manually-instantiated FieldElement.
Constructors
- ShimFieldImpl(String name, DartType type)
Properties
- augmentation → FieldAugmentationElement?
-
The immediate augmentation of this element, or
nullif there are no augmentations.FieldAugmentationElement.augmentationTargetis the back pointer that will point at this element.no setterinherited - codeLength → int?
-
The length of the element's code, or
nullif 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
nullif the element is synthetic.no setterinherited - completionData ↔ Object?
-
getter/setter pairinherited
- 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
-
Return the analysis context in which this element is defined.
no setterinherited
- declaration → FieldElement
-
Return the declaration of this element. If the element is a view on an
element, e.g. a method from an interface type, with substituted type
parameters, return the corresponding element from the class, without any
substitutions. If this element is already a declaration (or a synthetic
element, e.g. a synthetic property accessor), return itself.
no setterinherited
- displayName → String
-
Return the display name of this element, possibly the empty string if
this element does not have a name.
no setterinherited
- documentationComment ↔ String?
-
Return the content of the documentation comment (including delimiters) for
this element, or
nullif this element does not or cannot have documentation.getter/setter pairinherited - enclosingElement ↔ Element
-
Return the element that either physically or logically encloses this
element. This will be
nullif this element is a library because libraries are the top-level elements in the model.getter/setter pairinherited - enclosingElement2 → Element
-
Return the element that either physically or logically encloses this
element. This will be
nullif this element is a library because libraries are the top-level elements in the model.no setterinherited - enclosingElement3 → Element
-
Return the element that either physically or logically encloses this
element. This will be
nullif this element is a library because libraries are the top-level elements in the model.no setterinherited - enclosingUnit → CompilationUnitElementImpl
-
Return the enclosing unit element (which might be the same as
this), ornullif this element is not contained in any compilation unit.no setterinherited - evaluationResult ↔ EvaluationResultImpl?
-
Return the result of evaluating this variable's initializer as a
compile-time constant expression, or
nullif 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 ↔ PropertyAccessorElement?
-
The getter associated with this element.
getter/setter pairinherited
- hasAlwaysThrows → bool
-
Return
trueif this element has an annotation of the form@alwaysThrows.no setterinherited - hasDeprecated → bool
-
Return
trueif this element has an annotation of the form@deprecatedor@Deprecated('..').no setterinherited - hasDoNotStore → bool
-
Return
trueif this element has an annotation of the form@doNotStore.no setterinherited - hasFactory → bool
-
Return
trueif this element has an annotation of the form@factory.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hasImplicitType ↔ bool
-
Return
trueif this 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
-
Return
trueif this element has an annotation of the form@internal.no setterinherited - hasIsTest → bool
-
Return
trueif this element has an annotation of the form@isTest.no setterinherited - hasIsTestGroup → bool
-
Return
trueif this element has an annotation of the form@isTestGroup.no setterinherited - hasJS → bool
-
Return
trueif this element has an annotation of the form@JS(..).no setterinherited - hasLiteral → bool
-
Return
trueif this element has an annotation of the form@literal.no setterinherited - hasMustBeOverridden → bool
-
Return
trueif this element has an annotation of the form@mustBeOverridden.no setterinherited - hasMustCallSuper → bool
-
Return
trueif this element has an annotation of the form@mustCallSuper.no setterinherited - hasNonVirtual → bool
-
Return
trueif this element has an annotation of the form@nonVirtual.no setterinherited - hasOptionalTypeArgs → bool
-
Return
trueif this element has an annotation of the form@optionalTypeArgs.no setterinherited - hasOverride → bool
-
Return
trueif this element has an annotation of the form@override.no setterinherited - hasPragmaVmEntryPoint → bool
-
Return
trueif this element has an annotation of the form@pragma("vm:entry-point").no setterinherited - hasProtected → bool
-
Return
trueif this element has an annotation of the form@protected.no setterinherited - hasRequired → bool
-
Return
trueif this element has an annotation of the form@required.no setterinherited - hasSealed → bool
-
Return
trueif this element has an annotation of the form@sealed.no setterinherited - hasTypeInferred ↔ bool
-
getter/setter pairinherited
- hasUseResult → bool
-
Return
trueif this element has an annotation of the form@useResultor@UseResult('..').no setterinherited - hasVisibleForOverriding → bool
-
Return
trueif this element has an annotation of the form@visibleForOverriding.no setterinherited - hasVisibleForTemplate → bool
-
Return
trueif this element has an annotation of the form@visibleForTemplate.no setterinherited - hasVisibleForTesting → bool
-
Return
trueif this element has an annotation of the form@visibleForTesting.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
-
Return
trueif this field is abstract. Executable fields are abstract if they are declared with theabstractkeyword.getter/setter pairinherited - isConst ↔ bool
-
Return
trueif this variable was declared with the 'const' modifier.getter/setter pairinherited - isConstantEvaluated → bool
-
Return whether this constant is evaluated.
no setterinherited
- isCovariant ↔ bool
-
Return
trueif this field was explicitly marked as being covariant.getter/setter pairinherited - isEnumConstant ↔ bool
-
Return
trueif this element is an enum constant.getter/setter pairinherited - isExternal ↔ bool
-
Return
trueif this field was explicitly marked as being external.getter/setter pairinherited - isFinal ↔ bool
-
Return
trueif this variable was declared with the 'final' modifier. Variables that are declared with the 'const' modifier will returnfalseeven though they are implicitly final.getter/setter pairinherited - isLate ↔ bool
-
Return
trueif this variable uses late evaluation semantics.getter/setter pairinherited - isNonFunctionTypeAliasesEnabled → bool
-
no setterinherited
- isPrivate → bool
-
Return
trueif this element is private. Private elements are visible only within the library in which they are declared.no setterinherited - isPublic → bool
-
Return
trueif this element is public. Public elements are visible within any library that imports the library in which they are declared.no setterinherited - isStatic ↔ bool
-
Return
trueif this element is a static variable, as per section 8 of the Dart Language Specification:getter/setter pairinherited - isSynthetic ↔ bool
-
Return
trueif this element is synthetic. A synthetic element is an element that is not represented in the source code explicitly, but is implied by the source code, such as the default constructor for a class that does not explicitly define any constructors.getter/setter pairinherited - isSyntheticEnumField → bool
-
Return
trueif this element is a synthetic enum field.no setterinherited - isTempAugmentation ↔ bool
-
getter/setter pairinherited
- kind → ElementKind
-
Return the kind of element that this is.
no setterinherited
- library → LibraryElementImpl
-
Return the library that contains this element. This will be the element
itself if it is a library element. This will be
nullif this element isMultiplyDefinedElementthat is not contained in a library.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
-
Return an object representing the location of this element in the element
model. The object can be used to locate this element at a later time.
no setterinherited
-
metadata
↔ List<
ElementAnnotation> -
Return a list containing all of the metadata associated with this element.
The array will be empty if the element does not have any metadata or if
the library containing this element has not yet been resolved.
getter/setter pairinherited
- name ↔ String
-
Return the name of this element, or
nullif this element does not have a name.getter/setter pairinherited - nameLength → int
-
Return the length of the name of this element in the file that contains
the declaration of this element, or
0if this element does not have a name.no setterinherited - nameOffset ↔ int
-
Return the offset of the name of this element in the file that contains
the declaration of this element, or
-1if this element is synthetic, does not have a name, or otherwise does not have an offset.getter/setter pairinherited - nonSynthetic → Element
-
Return the non-synthetic element that caused this element to be created.
no setterinherited
- reference ↔ Reference?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → AnalysisSession?
-
Return the analysis session in which this element is defined.
no setterinherited
- setter ↔ PropertyAccessorElement?
-
The setter associated with this element, or
nullif the element is effectivelyfinaland therefore does not have a setter associated with it.getter/setter pairinherited - source → Source
-
Return the source associated with this target, or
nullif this target is not associated with a source.no setterinherited - type ↔ DartType
-
Return 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
nullif this variable is not a subject of type inference, or there was no error.getter/setter pairinherited - typeInternal → DartType
-
Gets the element's type, without going through the indirection of
ElementTypeProvider.no setterinherited - typeParameterContext → TypeParameterizedElementMixin?
-
Return the context to resolve type parameters in, or
nullif neither this element nor any of its ancestors is of a kind that can declare type parameters.no setterinherited
Methods
-
accept<
T> (ElementVisitor< T> visitor) → T? -
Use the given
visitorto visit this element. Return the value returned by the visitor as a result of visiting this element.inherited -
appendTo(
ElementDisplayStringBuilder builder) → void -
Append a textual representation of this element to the given
builder.inherited -
bindReference(
Reference reference) → void -
inherited
-
computeConstantValue(
) → DartObject? -
Return a representation of the value of this variable, forcing the value
to be computed if it had not previously been computed, or
nullif 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 -
createImplicitAccessors(
Reference enclosingRef, String name) → void -
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(
{required bool withNullability, bool multiline = false}) → String -
Return the presentation of this element as it should appear when
presented to users.
inherited
-
getExtendedDisplayName(
String? shortName) → String -
Return a display name for the given element that includes the path to the
compilation unit in which the type is defined. If
shortNameisnullthen displayName will be used as the name of this element. Otherwise the provided name will be used.inherited -
hasModifier(
Modifier modifier) → bool -
Return
trueif this element has the givenmodifierassociated with it.inherited -
isAccessibleIn(
LibraryElement? library) → bool -
Return
trueif this element, assuming that it is within scope, is accessible to code in the givenlibrary. This is defined by the Dart Language Specification in section 3.2:inherited -
isAccessibleIn2(
LibraryElement library) → bool -
Return
trueif this element, assuming that it is within scope, is accessible to code in the givenlibrary. This is defined by the Dart Language Specification in section 6.2:inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetMetadataFlags(
) → void -
inherited
-
safelyVisitChildren(
List< Element> children, ElementVisitor visitor) → void -
Use the given
visitorto visit all of thechildrenin the given array.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
modifieris associated with this element to correspond to the givenvalue.inherited -
thisOrAncestorMatching<
E extends Element> (bool predicate(Element)) → E? -
Return either this element or the most immediate ancestor of this element
for which the
predicatereturnstrue, ornullif there is no such element.inherited -
thisOrAncestorOfType<
E extends Element> () → E? -
Return either this element or the most immediate ancestor of this element
that has the given type, or
nullif there is no such element.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
visitChildren(
ElementVisitor visitor) → void -
Use the given
visitorto 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