with Interfaces
List containing declarations with any interface.
Return
A list containing declarations with any interface.
Parameters
include Nested
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
include Nested
Whether to include nested interfaces.
predicate
A function that defines the condition to be met by the list of interface declarations.