use of org.codehaus.groovy.classgen.asm.ExpressionAsVariableSlot in project groovy-core by groovy.
the class TemporaryVariableExpression method visit.
@Override
public void visit(final GroovyCodeVisitor visitor) {
if (visitor instanceof AsmClassGenerator) {
if (variable == null) {
AsmClassGenerator acg = (AsmClassGenerator) visitor;
WriterController controller = acg.getController();
variable = new ExpressionAsVariableSlot(controller, expression);
}
variable.visit(visitor);
} else {
expression.visit(visitor);
}
}
use of org.codehaus.groovy.classgen.asm.ExpressionAsVariableSlot in project groovy by apache.
the class TemporaryVariableExpression method visit.
@Override
public void visit(final GroovyCodeVisitor visitor) {
if (visitor instanceof AsmClassGenerator) {
if (variable == null) {
AsmClassGenerator acg = (AsmClassGenerator) visitor;
WriterController controller = acg.getController();
variable = new ExpressionAsVariableSlot(controller, expression);
}
variable.visit(visitor);
} else {
expression.visit(visitor);
}
}
Aggregations