TermReferenceType

tastyquery.Types.TermReferenceType
sealed trait TermReferenceType extends TermType, NonEmptyPrefix

The type of term reference, i.e., of an Ident or Select.

It is either a TermRef or a PackageRef.

Attributes

Graph
Supertypes
trait Prefix
class TermType
class TypeMappable
class Object
trait Matchable
class Any
Show all
Known subtypes
class PackageRef
class TermRef

Members list

Value members

Inherited methods

final def lookupMember(name: TypeName)(using Context): Option[TypeRef]

Attributes

Inherited from:
NonEmptyPrefix
final def lookupMember(name: TermName)(using Context): Option[TermRef]

Attributes

Inherited from:
NonEmptyPrefix
final def lookupMember(name: Name)(using Context): Option[NamedType]

Attributes

Inherited from:
NonEmptyPrefix

Attributes

Inherited from:
TypeMappable
final def select(sym: TypeSymbol)(using Context): TypeRef

Attributes

Inherited from:
NonEmptyPrefix
final def select(sym: TermSymbol)(using Context): TermRef

Attributes

Inherited from:
NonEmptyPrefix
final def select(sym: TermOrTypeSymbol)(using Context): NamedType

Attributes

Inherited from:
NonEmptyPrefix
final def select(name: TypeName)(using Context): TypeRef

Attributes

Inherited from:
NonEmptyPrefix
final def select(name: TermName)(using Context): TermRef

Attributes

Inherited from:
NonEmptyPrefix
final def select(name: Name)(using Context): NamedType

Attributes

Inherited from:
NonEmptyPrefix
def showBasic: String

Attributes

Inherited from:
TypeMappable
final def showMultiline: String

Attributes

Inherited from:
TypeMappable
final def widenTermRef(using Context): TermType

Widens TermRefs one level to their underlyingOrMethodic type.

Widens TermRefs one level to their underlyingOrMethodic type.

  • If this term type is a TermRef, returns this.underlyingOrMethodic.
  • Otherwise, returns this.

Attributes

Inherited from:
TermType