without Children
List containing declarations with no child - class does not extend any class and does not implement any interface.
Return
A list containing declarations with no child - class does not extend any class and does not implement any interface.
Parameters
indirect Children
Whether to include indirect children.
fun <T : KoChildProvider> List<T>.withoutChildren(indirectChildren: Boolean = false, predicate: (List<KoChildDeclaration>) -> Boolean): List<T>
List containing declarations without child declarations satisfying the predicate.
Return
A list containing declarations without child declarations satisfying the predicate.
Parameters
indirect Children
Whether to include indirect children.
predicate
A function that defines the condition to be met by the list of child declarations.