Versions in this module Expand all Collapse all v1 v1.22.0 Sep 26, 2023 Changes in this version + func Apply(root ast.Node, pre, post ApplyFunc) (result ast.Node) + func Join(list *ast.List, sep string) string + func Search(root ast.Node, f func(ast.Node) bool) *ast.List + func Walk(f Visitor, node ast.Node) + type ApplyFunc func(*Cursor) bool + type Cursor struct + func (c *Cursor) Index() int + func (c *Cursor) Name() string + func (c *Cursor) Node() ast.Node + func (c *Cursor) Parent() ast.Node + func (c *Cursor) Replace(n ast.Node) + type Visitor interface + Visit func(ast.Node) Visitor + type VisitorFunc func(ast.Node) + func (vf VisitorFunc) Visit(node ast.Node) Visitor