Module

x/ts_morph/ts_morph.d.ts>Node#getAncestors

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Node.prototype.getAncestors
import { Node } from "https://dotland.deno.dev/x/ts_morph@22.0.0/ts_morph.d.ts";

Goes up the tree getting all the parents in ascending order.