return switchCase.getExpression() == null ? f.newDefaultStatement() : f.newCaseStatement(new ExpressionInfo(switchCase.getExpression(), typeDeclaration, compilationUnitInfo).getExpression());
}
private IASTStatement convertSwitchStatement(final SwitchStatement switchStatement) {
final ExpressionInfo controller = new ExpressionInfo(switchStatement.getExpression(), typeDeclaration, compilationUnitInfo);
final IASTCompoundStatement body = f.newCompoundStatement();
for (final Object statementObject : switchStatement.statements()) {
final StatementInfo statementInfo = new StatementInfo((Statement) statementObject, typeDeclaration, compilationUnitInfo);
body.addStatement(statementInfo.getStatement());
}
return f.newSwitchStatement(controller.getExpression(), body);
}