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.

Reply via email to