This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.transform.ASTTest | |
import groovy.transform.CompileStatic | |
import groovy.transform.Immutable | |
import org.codehaus.groovy.ast.ClassNode | |
import org.codehaus.groovy.control.CompilePhase | |
@ASTTest(phase=CompilePhase.INSTRUCTION_SELECTION,value={ | |
ClassNode cn = node | |
def config = cn.compileUnit.config | |
def cu = cn.compileUnit.classLoader.createCompilationUnit(config, null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.codehaus.groovy.ast.ASTNode | |
import org.codehaus.groovy.ast.expr.ArgumentListExpression | |
import org.codehaus.groovy.ast.expr.ConstantExpression | |
import org.codehaus.groovy.ast.expr.MethodCallExpression | |
import org.codehaus.groovy.ast.expr.VariableExpression | |
import org.codehaus.groovy.ast.stmt.ExpressionStatement | |
import org.codehaus.groovy.ast.stmt.Statement | |
import org.codehaus.groovy.control.CompilePhase | |
import org.codehaus.groovy.control.SourceUnit | |
import org.codehaus.groovy.transform.ASTTransformation |