6 Astrewrite - walk and rewrite the AST of a go program

github.com godoc.org goreportcard.com posted by kenny 2714 days ago  

astrewrite provides a Walk() function, similar to ast.Inspect() from the ast package. The only difference is that the passed walk function can also return a node, which is used to rewrite the parent node. This provides an easy way to rewrite a given ast.Node while walking the AST.

Register to comment or vote on this story