withAllObjects

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

List containing declarations that have all objects satisfying the provided predicate.

Return

A filtered list containing declarations with all objects satisfying the predicate.

Parameters

includeNested

Whether to include nested objects.

predicate

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