CodeWriter thenBlock = w.createBlock();
if(else_ != null) {
CodeWriter elseBlock = w.createBlock();
- w.if_(conditionVal, thenBlock.getContinuation(), elseBlock.getContinuation());
+ w.if_(location, conditionVal, thenBlock.getContinuation(), elseBlock.getContinuation());
IVal elseVal = else_.toVal(context, elseBlock);
- elseBlock.jump(joinPoint.getContinuation(), elseVal);
+ elseBlock.jump(location, joinPoint.getContinuation(), elseVal);
}
else {
- w.if_(conditionVal, thenBlock.getContinuation(), joinPoint.getContinuation());
+ w.if_(location, conditionVal, thenBlock.getContinuation(), joinPoint.getContinuation());
}
IVal thenVal = then_.toVal(context, thenBlock);
- thenBlock.jump(joinPoint.getContinuation(), thenVal);
+ thenBlock.jump(location, joinPoint.getContinuation(), thenVal);
w.continueAs(joinPoint);
return w.getParameters()[0];