print line numbers
This commit is contained in:
parent
e8bf1f5cd7
commit
21c6f1ef47
1 changed files with 7 additions and 7 deletions
|
@ -136,7 +136,7 @@ public class InstructionPrinter {
|
|||
} else if (ain instanceof JumpInsnNode) {
|
||||
line = printJumpInsnNode((JumpInsnNode) ain);
|
||||
} else if (ain instanceof LineNumberNode) {
|
||||
line = printLineNumberNode();
|
||||
line = printLineNumberNode((LineNumberNode) ain);
|
||||
} else if (ain instanceof LabelNode) {
|
||||
if (firstLabel
|
||||
&& BytecodeViewer.viewer.appendBracketsToLabels
|
||||
|
@ -245,8 +245,8 @@ public class InstructionPrinter {
|
|||
+ resolveLabel(jin.label);
|
||||
}
|
||||
|
||||
protected String printLineNumberNode() {
|
||||
return "";
|
||||
protected String printLineNumberNode(LineNumberNode lnn) {
|
||||
return "// line " + lnn.line;
|
||||
}
|
||||
|
||||
protected String printLabelnode(LabelNode label) {
|
||||
|
|
Loading…
Reference in a new issue