TypeParameterElementType class
- Inheritance
-
- Object
- Privacy
- ElementType
- DefinedElementType
- TypeParameterElementType
- Implementers
Constructors
- TypeParameterElementType(TypeParameterType type, Library library, PackageGraph packageGraph, ModelElement element, 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 setterinherited - element → Element
-
no setterinherited
- fullyQualifiedName → String
-
no setterinherited
- 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.
latefinalinherited
- isParameterType → bool
-
no setterinherited
- 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 setterinherited
- isTypedef → bool
-
no setterinherited
- library → Library
-
finalinherited
- linkedName → String
-
no setteroverride
- modelBuilder → ModelObjectBuilder
-
Override implementations in unit tests to avoid requiring literal
ModelElements.
latefinalinherited
- modelElement → ModelElement
-
finalinherited
- name → String
-
no setterinherited
- namePart → String
-
Utility getter/cache for
_MarkdownCommentReference._getResultsForClass
.latefinalinherited -
namePieces
→ Set<
String> -
latefinalinherited
- nameWithGenerics → String
-
Name with generics and nullability indication.
no setteroverride
- 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 setterinherited -
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 setterinherited
- 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 setterinherited
- returnedFrom → ElementType?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → Scope?
-
For any
CommentReferable
where an analyzerScope
exists (or can be constructed), implement this. This will take priority over lookups viareferenceChildren
. Can be cached.no setterinherited - type → TypeParameterType
-
no setteroverride
-
typeArguments
→ Iterable<
ElementType> -
no setterinherited
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.inherited -
isSubtypeOf(
ElementType t) → bool -
The instantiated to bounds type of this type is a subtype of
t
.inherited -
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