You can have a look at org.codehaus.groovy.transform.ASTTransformationVisitor, org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor and ultimately org.codehaus.groovy.control.CompilationUnit. The compiler phase operation linked lists are what you are looking to order. Besides the phases for ordering, it is strictly FIFO ordering at the moment.
- Ordering of AST transformations Christopher Smith
- RE: Ordering of AST transformations Milles, Eric (TR Technology)
- Re: Ordering of AST transformations MG
- Re: Ordering of AST transformations MG
- Re: Ordering of AST transformati... Christopher Smith
- Re: Ordering of AST transfor... Jochen Theodorou