withType

List containing declarations with the specified type.

Return

A list containing declarations with the specified type.

Parameters

predicate

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


fun <T : KoNullableTypeProvider> List<T>.withType(predicate: (KoTypeDeclaration) -> Boolean? = null): List<T>

List containing declarations with the specified type.

Return

A list containing declarations with the specified type (or any type if predicate is null).

Parameters

predicate

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