withExternalParentOf

fun <T : KoExternalParentProvider> List<T>.withExternalParentOf(kClass: KClass<*>, vararg kClasses: KClass<*>, indirectParents: Boolean = false): List<T>

List containing declarations that have at least one external parent of the specified KClass type. The external parent is a parent defined outside the project codebase (defined inside external library).

Return

A list containing declarations with at least one external parent of the specified KClass type.

Parameters

kClass

The Kotlin class representing external parent to include.

kClasses

The Kotlin classes representing external parents to include.

indirectParents

Whether to include indirect external parents.


fun <T : KoExternalParentProvider> List<T>.withExternalParentOf(kClasses: Collection<KClass<*>>, indirectParents: Boolean = false): List<T>

List containing declarations that have at least one external parent of the specified KClass type. The external parent is a parent defined outside the project codebase (defined inside external library).

Return

A list containing declarations with at least one external parent of the specified KClass type.

Parameters

kClasses

The Kotlin classes representing external parents to include.

indirectParents

Whether to include indirect external parents.