Skip to content
Snippets Groups Projects
Commit b9b04eac authored by Michael Leuschel's avatar Michael Leuschel
Browse files

add empty ELSIF list when constructing IF-THEN-ELSE

parent 63de0f31
Branches
Tags
No related merge requests found
......@@ -1675,8 +1675,10 @@ public class BAstCreator extends BuiltInOPs
}
case OPCODE_ite: { // IF THEN ELSE
List<PExpression> Elsifs = new ArrayList<>();
AIfThenElseExpression ifthenElse = new AIfThenElseExpression(visitExprOrOpArgNodePredicate(n.getArgs()[0]),
visitExprOrOpArgNodeExpression(n.getArgs()[1]), visitExprOrOpArgNodeExpression(n.getArgs()[2]));
visitExprOrOpArgNodeExpression(n.getArgs()[1]), Elsifs,
visitExprOrOpArgNodeExpression(n.getArgs()[2]));
return ifthenElse;
// ALambdaExpression lambda1 = new ALambdaExpression();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment