KaFunctionType
Represents Kotlin function types, such as (String) -> Int or suspend () -> List<Any>.
Hierarchy
Inherits from KaClassType.
Members
val isSuspend: Booleantrueif the type is a suspend function type.val isReflectType: Booleantrueif the type is a reflect function type (kotlin.reflection.KFunctionN).val arity: IntThe number of type parameters.
val parameterTypes: List<KaType>A list of parameter types. Not to confuse with
typeArgumentswhich also include the function return type.val returnType: KaTypeThe function return type.
val hasReceiver: Booleantrueif the given type is an extension function type.val receiverType: KaType?The extension receiver type, or
nullif the given type is not an extension function type.val hasContextReceivers: Booleantrueif the function type has context receiver parameters.Experimental API.
val contextReceivers: List<KaContextReceiver>A list of context receiver parameters.
Experimental API.
Last modified: 23 July 2024