withoutChild

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

List containing declarations that not have child satisfying the provided predicate.

Return

A list containing declarations without child satisfying the provided predicate.

Parameters

indirectChildren

Whether to include indirect children.

predicate

A function that defines the condition to be met by a child declaration.