withoutChildOf

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

List containing declarations without any child of the specified KClass type.

Return

A list containing declarations without any of the specified children.

Parameters

kClass

The Kotlin class representing child to exclude.

kClasses

The Kotlin classes representing children to exclude.

indirectChildren

Whether to include indirect children.


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

List containing declarations without any child of the specified KClass type.

Return

A list containing declarations without any of the specified children.

Parameters

kClasses

The Kotlin classes representing children to exclude.

indirectChildren

Whether to include indirect children.