flatMapDescendantsOfTypeVisitor¶
inline fun <reified T : KtElement, R> flatMapDescendantsOfTypeVisitor(accumulator: MutableCollection<R>, noinline map: (T) -> Collection<R>): KtVisitorVoid
Returns a recursive visitor that maps each visited element of type T, including the element passed to accept, and adds all results to accumulator in DFS-exit order.