Skip to content

KaInternalsTypeProvider

Functions

allSupertypes

abstract fun allSupertypes(type: KaType, shouldApproximate: Boolean): Sequence<KaType>

approximateToDenotableSubtype

approximateToDenotableSupertype

abstract fun approximateToDenotableSupertype(type: KaType, allowLocalDenotableTypes: Boolean): KaType?
abstract fun approximateToDenotableSupertype(type: KaType, position: KtElement): KaType?

arrayElementType

abstract fun arrayElementType(type: KaType): KaType?

augmentedByWarningLevelAnnotations

builtinTypes

abstract fun builtinTypes(): KaBuiltinTypes

collectImplicitReceiverTypes

commonSupertype

abstract fun commonSupertype(types: Iterable<KaType>): KaType

defaultType

abstract fun defaultType(symbol: KaClassifierSymbol): KaType

defaultTypeWithStarProjections

directSupertypes

abstract fun directSupertypes(type: KaType, shouldApproximate: Boolean): Sequence<KaType>

hasCommonSubtypeWith

abstract fun hasCommonSubtypeWith(type: KaType, that: KaType): Boolean

receiverType

abstract fun receiverType(expression: KtDoubleColonExpression): KaType?

type

abstract fun type(typeReference: KtTypeReference): KaType

varargArrayType

withNullability

abstract fun withNullability(type: KaType, isMarkedNullable: Boolean): KaType