withObjects

fun <T : KoObjectProvider> List<T>.withObjects(includeNested: Boolean = true): List<T>

List containing declarations with any object.

Return

A list containing declarations with any object.

Parameters

includeNested

Whether to include nested objects.


fun <T : KoObjectProvider> List<T>.withObjects(includeNested: Boolean = true, predicate: (List<KoObjectDeclaration>) -> Boolean): List<T>

List containing declarations with object declarations satisfying the predicate.

Return

A list containing declarations with object declarations satisfying the predicate.

Parameters

includeNested

Whether to include nested objects.

predicate

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