withExternalParents

fun <T : KoExternalParentProvider> List<T>.withExternalParents(indirectParents: Boolean = false): List<T>

List containing declarations with any external parent. The external parent is a parent defined outside the project codebase (defined inside external library).

Return

A list containing declarations with any external parent.

Parameters

indirectParents

Whether to include indirect external parents.


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

List containing declarations with external parent declarations satisfying the predicate. The external parent is a parent defined outside the project codebase (defined inside external library).

Return

A list containing declarations with external parent declarations satisfying the predicate.

Parameters

indirectParents

Whether to include indirect external parents.

predicate

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