with Parent Of
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
k Class
The Kotlin class representing parent to include.
k Classes
The Kotlin classes representing parents to include.
indirect Parents
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
k Classes
The Kotlin classes representing parents to include.
indirect Parents
Whether to include indirect parents.