Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function visit
import { visit } from "https://deno.land/x/frugal@0.5.0/packages/dependency_graph/visitor.ts";

Utility function to visit some AST.

On each visited node, the method visit${node.type} will be called on the visitor if it exists.

Parameters

node: NODE
optional
visitor: Visitor<NODE> = [UNSUPPORTED]