Skip to content

closestPsiElement

fun ASTNode.closestPsiElement(): PsiElement?

Returns the nearest PSI element for this node, walking up to a parent node if this node has no PSI of its own.