withoutParent

fun <T : KoParentProvider> List<T>.withoutParent(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): List<T>

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

Return

A list containing declarations without parent satisfying the provided predicate.

Parameters

indirectParents

Whether to include indirect parents.

predicate

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