withAllChildren

fun <T : KoChildProvider> List<T>.withAllChildren(indirectChildren: Boolean = false, predicate: (KoChildDeclaration) -> Boolean): List<T>

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

Return

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

Parameters

indirectChildren

Whether to include indirect children.

predicate

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