hasReceiverType

abstract fun hasReceiverType(predicate: (KoTypeDeclaration) -> Boolean? = null): Boolean

Determines whatever declaration has a specified receiver type.

Return

true if the declaration has the specified receiver type (or any receiver type if predicate is null), false otherwise.

Parameters

predicate

The predicate function used to determine if a declaration receiver type satisfies a condition.