KoReturnProvider

An interface representing a Kotlin declaration that provides access to the return information.

Inheritors

Properties

Link copied to clipboard
abstract val hasReturnValue: Boolean

Indicates whether a declaration has a non-Unit return value.

Link copied to clipboard

Return type of the declaration.

Functions

Link copied to clipboard
abstract fun hasReturnType(predicate: (KoTypeDeclaration) -> Boolean? = null): Boolean

Determines whatever declaration has a specified return type.

Link copied to clipboard
abstract fun hasReturnTypeOf(kClass: KClass<*>): Boolean

Determines whatever declaration has a return type of the specified Kotlin class.

Link copied to clipboard

Determines whatever declaration has return type.