Skip to content

parents

fun ASTNode.parents(): Sequence<ASTNode>

The ancestor nodes of this AST node, from its parent upward, as a lazy sequence.

val PsiElement.parents: Sequence<PsiElement>

The ancestors of this element, from its immediate parent up to and including the containing file.