FYI. https://github.com/apache/groovy/blob/master/subprojects/groovy-console/src/main/groovy/groovy/console/ui/AstNodeToScriptAdapter.groovy
https://github.com/apache/groovy/blob/master/subprojects/groovy-console/src/test/groovy/groovy/console/ui/AstNodeToScriptAdapterTest.groovy Cheers, Daniel Sun On 2021/10/22 15:02:16, Max Lynch <ihas...@gmail.com> wrote: > I'm building a tool for making modifications against Groovy/Gradle files. > I've successfully built an AST using AstBuilder, but I'm not sure how to > generate Groovy code from the modified AST I have. > > I found the AstNodeToScriptAdapter.groovy which seems like what I'm after > but it seems specialized and I'm wondering how accurate it is. > > Is there any other class I'm missing for serializing an AST back to source? > > Thanks, > Max >