use of lucee.transformer.expression.ExprInt in project Lucee by lucee.
the class TagLoop method writeOutTypeTimes.
private void writeOutTypeTimes(BytecodeContext bc) throws TransformerException {
Factory f = bc.getFactory();
GeneratorAdapter adapter = bc.getAdapter();
int times = adapter.newLocal(Types.INT_VALUE);
ExprInt timesExpr = CastInt.toExprInt(getAttribute("times").getValue());
ExpressionUtil.writeOutSilent(timesExpr, bc, Expression.MODE_VALUE);
adapter.storeLocal(times);
ForVisitor fiv = new ForVisitor();
fiv.visitBegin(adapter, 1, false);
getBody().writeOut(bc);
fiv.visitEnd(bc, times, true, getStart());
}
Aggregations