checkSwitchExprType();
if (!caseBlocks.isEmpty()) {
for (LiteralValue<?> value : caseBlocks.keySet()) {
if (!switchExprStmt.getType().getErased().asBoxed().isAssignableFrom(value.getType().getErased())) {
throw new InvalidTypeException(
value.generate(context) + " is not a valid value for " + switchExprStmt.getType().getFullyQualifiedName());
}
// case labels must be unqualified
String val = value.generate(context);
int idx = val.lastIndexOf('.');