JBinaryOperation compareOperation = new JBinaryOperation(program,
x.getSourceInfo(), program.getTypePrimitiveBoolean(),
JBinaryOperator.EQ, x.getExpr(), caseStatement.getExpr());
JBlock block = new JBlock(program, x.getSourceInfo());
block.statements.add(statement);
JIfStatement ifStatement = new JIfStatement(program,
x.getSourceInfo(), compareOperation, block, null);
ctx.replaceMe(ifStatement);
} else {
// All we have is a default case; convert to a JBlock.
JBlock block = new JBlock(program, x.getSourceInfo());