(node: ASTNode)
| 6 | |
| 7 | export 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 | } |
nothing calls this directly
no test coverage detected