import { Node } from "https://deno.land/x/fresh@1.1.3/src/dev/deps.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.