github.com/gotranspile/cxgo@v0.3.8-0.20240118201721-29871598a6a2/node.go (about) 1 package cxgo 2 3 type Visitor func(n Node) 4 5 type Node interface { 6 // Visit calls the provided interface for all child nodes. 7 // It's the visitor's responsibility to recurse by calling n.Visit(v). 8 Visit(v Visitor) 9 }