with Child Of
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
k Class
The Kotlin class representing child to include.
k Classes
The Kotlin classes representing children to include.
indirect Children
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
k Classes
The Kotlin classes representing children to include.
indirect Children
Whether to include indirect children.