withoutObjects

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

List containing declarations with no objects.

Return

A list containing declarations with no objects.

Parameters

includeNested

Whether to include nested objects.


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

List containing declarations without object declarations satisfying the predicate.

Return

A list containing declarations without 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.