TypeReference

sealed external interface TypeReference : ObjectType(source)

Type references (ObjectFlags.Reference). When a class or interface has type parameters or a "this" type, references to the class or interface are made using type references. The typeArguments property specifies the types to substitute for the type parameters of the class or interface and optionally includes an extra element that specifies the type to substitute for "this" in the resulting instantiation. When no extra argument is present, the type reference itself is substituted for "this". The typeArguments property is undefined if the class or interface has no type parameters and the reference isn't specifying an explicit "this" argument.

Inheritors

Properties

Link copied to clipboard
abstract var aliasSymbol: Symbol?
Link copied to clipboard
Link copied to clipboard
abstract var flags: TypeFlags
Link copied to clipboard
Link copied to clipboard
abstract var objectFlags: ObjectFlags
Link copied to clipboard
Link copied to clipboard
abstract var symbol: Symbol
Link copied to clipboard
abstract var target: GenericType
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getConstraint(): Type?
Link copied to clipboard
Link copied to clipboard
abstract fun getDefault(): Type?
Link copied to clipboard
abstract fun getFlags(): TypeFlags
Link copied to clipboard
abstract fun getNonNullableType(): Type
Link copied to clipboard
abstract fun getNumberIndexType(): Type?
Link copied to clipboard
Link copied to clipboard
abstract fun getProperty(propertyName: String): Symbol?
Link copied to clipboard
abstract fun getStringIndexType(): Type?
Link copied to clipboard
abstract fun getSymbol(): Symbol?
Link copied to clipboard
abstract fun isClass(): Boolean
Link copied to clipboard
abstract fun isClassOrInterface(): Boolean
Link copied to clipboard
abstract fun isIndexType(): Boolean
Link copied to clipboard
abstract fun isIntersection(): Boolean
Link copied to clipboard
abstract fun isLiteral(): Boolean
Link copied to clipboard
abstract fun isNumberLiteral(): Boolean
Link copied to clipboard
abstract fun isStringLiteral(): Boolean
Link copied to clipboard
abstract fun isTypeParameter(): Boolean
Link copied to clipboard
abstract fun isUnion(): Boolean
Link copied to clipboard