withChildOf

fun <T : KoChildProvider> List<T>.withChildOf(kClass: KClass<*>, vararg kClasses: KClass<*>, indirectChildren: Boolean = false): List<T>

List containing declarations that have at least one child of the specified KClass type.

Return

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

Parameters

kClass

The Kotlin class representing child to include.

kClasses

The Kotlin classes representing children to include.

indirectChildren

Whether to include indirect children.


fun <T : KoChildProvider> List<T>.withChildOf(kClasses: Collection<KClass<*>>, indirectChildren: Boolean = false): List<T>

List containing declarations that have at least one child of the specified KClass type.

Return

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

Parameters

kClasses

The Kotlin classes representing children to include.

indirectChildren

Whether to include indirect children.