VisitFunc is a function type that can be used to implement custom visitors without creating a new type.
func(Node) (Visitor, error)
| 314 | // VisitFunc is a function type that can be used to implement custom visitors |
| 315 | // without creating a new type. |
| 316 | type VisitFunc func(Node) (Visitor, error) |
| 317 | |
| 318 | // Visit implements the Visitor interface. |
| 319 | func (f VisitFunc) Visit(node Node) (Visitor, error) { |