withAllChildrenOf

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

List containing declarations that have all children of the specified KClass type.

Return

A list containing declarations that have all children 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>.withAllChildrenOf(kClasses: Collection<KClass<*>>, indirectChildren: Boolean = false): List<T>

List containing declarations that have all children of the specified KClass type.

Return

A list containing declarations that have all children of the specified KClass type.

Parameters

kClasses

The Kotlin classes representing children to include.

indirectChildren

Whether to include indirect children.