Would it make sense to use [code.google.com/p/go.tools/astutil](http://godoc.org/code.google.com/p/go.tools/astutil) here?