thisOrAncestorOfType<E extends AstNode> method
Null safety
Return either this node or the most immediate ancestor of this node that
has the given type, or null
if there is no such node.
Implementation
E? thisOrAncestorOfType<E extends AstNode>();