withParentOf
fun <T : KoParentProvider> List<T>.withParentOf(kClass: KClass<*>, vararg kClasses: KClass<*>, indirectParents: Boolean = false): List<T>
List containing declarations that have at least one parent of the specified KClass
type.
Return
A list containing declarations with at least one parent of the specified KClass
type.
Parameters
kClass
The Kotlin class representing parent to include.
kClasses
The Kotlin classes representing parents to include.
indirectParents
Whether to include indirect parents.
fun <T : KoParentProvider> List<T>.withParentOf(kClasses: Collection<KClass<*>>, indirectParents: Boolean = false): List<T>
List containing declarations that have at least one parent of the specified KClass
type.
Return
A list containing declarations with at least one parent of the specified KClass
type.
Parameters
kClasses
The Kotlin classes representing parents to include.
indirectParents
Whether to include indirect parents.