TermType

tastyquery.Types.TermType
sealed abstract class TermType extends TypeMappable

A marker trait for types that can be the type of a Trees.TermTree.

Partitioned into TypeOrMethodic and PackageRef.

Attributes

Graph
Supertypes
class TypeMappable
class Object
trait Matchable
class Any
Known subtypes
class PackageRef
class TermRef
trait LambdaType
class MethodType
class PolyType
class TypeLambda
class MethodicType
class Type
trait BoundType
trait ParamRef
class TermParamRef
class TypeParamRef
class RecThis
class GroundType
class AndType
class AnyKindType
class NothingType
class OrType
class TypeProxy
class AppliedType
class ByNameType
class ConstantType
class MatchType
class NamedType
class TypeRef
class RecType
class RefinedType
class RepeatedType
class SkolemType
class SuperType
class ThisType
Show all

Members list

Value members

Concrete methods

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 methods

Attributes

Inherited from:
TypeMappable
def showBasic: String

Attributes

Inherited from:
TypeMappable
final def showMultiline: String

Attributes

Inherited from:
TypeMappable