DefinedElementType class abstract

An ElementType associated with an Element.

Inheritance
Implementers

Constructors

DefinedElementType(DartType type, Library library, PackageGraph packageGraph, ModelElement modelElement, ElementType? returnedFrom)

Properties

canHaveParameters bool
no setterinherited
definingCommentReferable → CommentReferable
For testing / comparison only, get the comment referable from where this ElementType was defined. Override where an Element is available.
no setter
element → Element
no setter
fullyQualifiedName String
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
href String?
no setterinherited
instantiatedType → DartType
Return this type, instantiated to bounds if it isn't already.
latefinal
isParameterType bool
no setter
isPublic bool
This type is a public type if the underlying, canonical element is public. This avoids discarding the resolved type information as canonicalization would ordinarily do.
no setteroverride
isTypedef bool
no setterinherited
library Library
finalinherited
linkedName String
no setterinherited
modelBuilder → ModelObjectBuilder
Override implementations in unit tests to avoid requiring literal ModelElements.
latefinalinherited
modelElement ModelElement
final
name String
no setteroverride
namePart String
Utility getter/cache for _MarkdownCommentReference._getResultsForClass.
latefinalinherited
namePieces Set<String>
latefinalinherited
nameWithGenerics String
Name with generics and nullability indication.
no setterinherited
nullabilitySuffix String
Return a dartdoc nullability suffix for this type.
no setterinherited
packageGraph PackageGraph
finalinherited
referenceChildren Map<String, CommentReferable>
Map of referenceName to the elements that are a member of this, but not this model element itself. Can be cached.
no setter
referenceGrandparentOverrides Iterable<CommentReferable>?
Replace the parents of parents. referenceBy ignores whatever might otherwise be implied by the referenceParents of referenceParents, replacing them with this.
no setter
referenceName String
no setterinherited
referenceParents Iterable<CommentReferable>
Iterable of immediate "parents" to try resolving component parts. referenceBy stops at the first parent where a part is found. Can be cached.
no setter
returnedFrom ElementType?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope → Scope?
For any CommentReferable where an analyzer Scope exists (or can be constructed), implement this. This will take priority over lookups via referenceChildren. Can be cached.
no setterinherited
type → DartType
finalinherited
typeArguments Iterable<ElementType>
no setteroverride

Methods

childLookups(List<String> reference) Iterable<ReferenceChildrenLookup>
A list of lookups that should be attempted on children based on reference. This allows us to deal with libraries that may have separators in them. referenceBy stops at the first one found.
inherited
isBoundSupertypeTo(ElementType t) bool
Returns true if at least one supertype (including via mixins and interfaces) is equivalent to or a subtype of this when instantiated to bounds.
override
isSubtypeOf(ElementType t) bool
The instantiated to bounds type of this type is a subtype of t.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
referenceBy(List<String> reference, {required bool filter(CommentReferable?), required bool allowTree(CommentReferable?), bool tryParents = true, Iterable<CommentReferable>? parentOverrides}) → CommentReferable?
Look up a comment reference by its component parts.
inherited
toString() String
A string representation of this object.
inherited

Operators

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