childrenBreadthFirst
Return
a sequence of child nodes of this PsiElement in breadth-first order. The sequence starts with all the child nodes of this PsiElement, followed by all the child nodes of the first child node, and so on.
inline fun PsiElement.childrenBreadthFirst(crossinline predicate: (PsiElement) -> Boolean): Sequence<PsiElement>(source)
Return
a sequence of child nodes of this PsiElement in breadth-first order that satisfy the given predicate. The sequence starts with all the child nodes of this PsiElement, followed by all the child nodes of the first child node, and so on.
Parameters
predicate
stops visiting child nodes of the parent of the given node once this predicate returns false