CallableElementType class

A callable type that may or may not be backed by a declaration using the generic function syntax.

Inheritance
Mixed in types

Constructors

CallableElementType(FunctionType t, Library library, PackageGraph packageGraph, ModelElement element, ElementType returnedFrom)

Properties

canHaveParameters bool
read-only, inherited
element Element
read-only, inherited
fullyQualifiedName String
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
instantiatedType DartType
Return this type, instantiated to bounds if it isn't already.
read-only, inherited
isParameterType bool
read-only, inherited
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.
read-only, inherited
isTypedef bool
read-only, inherited
library Library
final, inherited
linkedName String
read-only, inherited
modelElement ModelElement
read-only, inherited
name String
read-only, override
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, inherited
nullabilitySuffix String
Return a dartdoc nullability suffix for this type.
read-only, inherited
packageGraph PackageGraph
final, read / write, inherited
parameters List<Parameter>
read-only, inherited
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, inherited
returnType ElementType
read-only, inherited
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 FunctionType
read-only, inherited
typeArguments Iterable<ElementType>
read-only, inherited

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
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
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. [...]
inherited

Operators

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