|
|
@ -155,19 +155,18 @@ public class CaseBlock extends StructuredBlock { |
|
|
|
} |
|
|
|
} |
|
|
|
if (isFallThrough) { |
|
|
|
if (isFallThrough) { |
|
|
|
writer.tab(); |
|
|
|
writer.tab(); |
|
|
|
writer.print("/* fall through */"); |
|
|
|
writer.println("/* fall through */"); |
|
|
|
writer.untab(); |
|
|
|
writer.untab(); |
|
|
|
} |
|
|
|
} |
|
|
|
writer.print("default:"); |
|
|
|
writer.print("default:"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (isFallThrough) { |
|
|
|
if (isFallThrough) { |
|
|
|
writer.tab(); |
|
|
|
writer.tab(); |
|
|
|
writer.print("/* fall through */"); |
|
|
|
writer.println("/* fall through */"); |
|
|
|
writer.untab(); |
|
|
|
writer.untab(); |
|
|
|
} |
|
|
|
} |
|
|
|
ConstOperator constOp = new ConstOperator |
|
|
|
ConstOperator constOp = new ConstOperator(new Integer(value)); |
|
|
|
(((SwitchBlock)outer).getInstruction().getType(), |
|
|
|
constOp.setType(((SwitchBlock)outer).getInstruction().getType()); |
|
|
|
Integer.toString(value)); |
|
|
|
|
|
|
|
constOp.makeInitializer(); |
|
|
|
constOp.makeInitializer(); |
|
|
|
writer.print("case " + constOp.toString() + ":"); |
|
|
|
writer.print("case " + constOp.toString() + ":"); |
|
|
|
} |
|
|
|
} |
|
|
|