with Children
List containing declarations with class or interface child.
Return
A list containing declarations with class or interface child.
Parameters
indirect Children
Whether to include indirect children.
fun <T : KoChildProvider> List<T>.withChildren(indirectChildren: Boolean = false, predicate: (List<KoChildDeclaration>) -> Boolean): List<T>
List containing declarations with child declarations satisfying the predicate.
Return
A list containing declarations with 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.