import { Node } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
Goes up the parents (ancestors) of the node while the parent is the specified syntax kind. Returns undefined if the initial parent is not the specified syntax kind.
Parameters
kind: TKind
- Syntax kind to check for.