withAllExternalParents

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

List containing declarations that have all external parents satisfying the provided predicate. The external parent is a parent defined outside the project codebase (defined inside external library).

Return

A filtered list containing declarations with all external parents satisfying the predicate.

Parameters

indirectParents

Whether to include indirect external parents.

predicate

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