childrenOfTypeDepthFirst

inline fun <T : PsiElement> PsiElement.childrenOfTypeDepthFirst(): Sequence<T>(source)

Return

a sequence of child nodes of type T of this PsiElement in depth-first order. The sequence starts with the first child node of this PsiElement, followed by the first child node of the first child node, and so on.