ElementType class

Base class representing a type in Dartdoc. It wraps a DartType, and may link to a ModelElement.

Inheritance
Mixed in types
Implementers

Constructors

ElementType(DartType _type, Library library, PackageGraph packageGraph, ElementType returnedFrom)
ElementType.from(DartType f, Library library, PackageGraph packageGraph, {ElementType returnedFrom})
factory

Properties

canHaveParameters bool
read-only
element Element
read-only, inherited
fullyQualifiedName String
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
instantiatedType DartType
read-only
isPublic bool
read-only, inherited
isTypedef bool
read-only
library Library
final
linkedName String
read-only
name String
read-only, inherited
namePart String
Utility getter/cache for _MarkdownCommentReference._getResultsForClass.
read-only, inherited
namePieces Set<String>
read-only, inherited
nameWithGenerics String
Name with generics and nullability indication.
read-only
nullabilitySuffix String
Return a dartdoc nullability suffix for this type.
read-only
packageGraph PackageGraph
final, read / write, inherited-setter
referenceChildren Map<String, CommentReferable>
Map of name to the elements that are a member of this, but not this model element itself. Can be cached. [...]
read-only, inherited
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.
read-only, inherited
returnedFrom ElementType
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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.
read-only, inherited
type DartType
read-only
typeArguments Iterable<ElementType>
read-only

Methods

childLookups(List<String> reference) List<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
isSubtypeOf(ElementType t) bool
lookupViaScope(ReferenceChildrenLookup referenceLookup, bool filter(CommentReferable)) → CommentReferable
Looks up references by scope, skipping over results that do not match the given filter. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
recurseChildrenAndFilter(ReferenceChildrenLookup referenceLookup, CommentReferable result, bool filter(CommentReferable)) → CommentReferable
Given a result found in an implementation of lookupViaScope or _lookupViaReferenceChildren, recurse through children, skipping over results that do not match the filter.
inherited
referenceBy(List<String> reference, {bool tryParents = true, bool filter(CommentReferable)}) → CommentReferable
Look up a comment reference by its component parts. If tryParents is true, try looking up the same reference in any parents of this. Will skip over results that do not pass a given filter and keep searching.
@nonVirtual, inherited
toString() String
A string representation of this object. [...]
override

Operators

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