CodeWriter end = w.createBlock();
IVal[] scrutineeVals = new IVal[1];
- scrutineeVals[0] = scrutinee.toVal(context.environment, w);
+ scrutineeVals[0] = scrutinee.toVal(context, w);
ArrayList<Row2> rows = new ArrayList<Row2>(1);
rows.add(new Row2(new Expression[] {pattern}, body.getContinuation()));
- PatternMatchingCompiler2.split(w, context.environment, scrutineeVals, end.getContinuation(), rows);
+ PatternMatchingCompiler2.split(location, w, context, scrutineeVals, end.getContinuation(), rows);
planContext.nextOp(body);
if(body.isUnfinished())
- body.jump(end.getContinuation());
+ body.jump(location, end.getContinuation());
w.continueAs(end);
}