withInterfaces

fun <T : KoInterfaceProvider> List<T>.withInterfaces(includeNested: Boolean = true): List<T>

List containing declarations with any interface.

Return

A list containing declarations with any interface.

Parameters

includeNested

Whether to include nested interfaces.


fun <T : KoInterfaceProvider> List<T>.withInterfaces(includeNested: Boolean = true, predicate: (List<KoInterfaceDeclaration>) -> Boolean): List<T>

List containing declarations with interface declarations satisfying the predicate.

Return

A list containing declarations with interface declarations satisfying the predicate.

Parameters

includeNested

Whether to include nested interfaces.

predicate

A function that defines the condition to be met by the list of interface declarations.