- @Override
- public void collectVars(TObjectIntHashMap<Variable> allVars,
- TIntHashSet vars) {
- condition.collectVars(allVars, vars);
- then_.collectVars(allVars, vars);
- if(else_ != null)
- else_.collectVars(allVars, vars);
- }
-
- @Override
- protected void updateType() throws MatchException {
- setType(then_.getType());
- }
-
- @Override
- public IVal toVal(Environment env, CodeWriter w) {
- IVal conditionVal = condition.toVal(env, w);
+ @Override
+ public IVal toVal(CompilationContext context, CodeWriter w) {
+ IVal conditionVal = condition.toVal(context, w);