withoutExternalParents

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

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

Return

A list containing declarations with no external parent.

Parameters

indirectParents

Whether to include indirect external parents.


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

List containing declarations without 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 without 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.