MCPcopy
hub / github.com/DulLabs/bhai-lang / visitNode

Method visitNode

packages/interpreter/src/components/visitor/program.ts:8–13  ·  view source on GitHub ↗
(node: ASTNode)

Source from the content-addressed store, hash-verified

6
7export default class Program implements Visitor {
8 visitNode(node: ASTNode) {
9 if (Array.isArray(node.body) || !node.body)
10 throw new InvalidStateException(`Invalid node body for : ${node.type}`);
11
12 InterpreterModule.getVisitor(node.body.type).visitNode(node.body);
13 }
14}

Callers

nothing calls this directly

Calls 2

getVisitorMethod · 0.80
visitNodeMethod · 0.65

Tested by

no test coverage detected