fi.keyword("case").whiteSpace();
fi.indented().expression(caseClause.getExpression());
fi.colon().whiteSpace();
List<JSStatement> statements = caseClause.getStatements();
for (int index = 0; index < statements.size(); index++) {
final JSStatement statement = statements.get(index);
fi.block(statement);
}
fi.lineTerminator();
}
if (value.getDefaultClause() != null) {
fi.keyword("default");
fi.colon().whiteSpace();
final List<JSStatement> statements = value.getDefaultClause()
.getStatements();
for (int index = 0; index < statements.size(); index++) {
final JSStatement statement = statements.get(index);
fi.block(statement);
}
fi.lineTerminator();
}
for (JSCaseClause caseClause : value.getSecondCaseClauses()) {
fi.keyword("case").whiteSpace();
f.expression(caseClause.getExpression());
fi.colon().whiteSpace();
final List<JSStatement> statements = caseClause.getStatements();
for (int index = 0; index < statements.size(); index++) {
final JSStatement statement = statements.get(index);
fi.block(statement);
}
fi.lineTerminator();
}
f.closeCurlyBracket();