Commit f2f8936c authored by Skylot's avatar Skylot

chore: fix indent of first line in fallback mode

parent f0f5c268
......@@ -234,14 +234,15 @@ public class MethodGen {
code.startLine("// Can't load method instructions.");
return;
}
code.incIndent();
if (mth.getThisArg() != null) {
code.startLine(nameGen.useArg(mth.getThisArg())).add(" = this;");
}
addFallbackInsns(code, mth, insnArr, true);
code.decIndent();
}
public static void addFallbackInsns(CodeWriter code, MethodNode mth, InsnNode[] insnArr, boolean addLabels) {
code.incIndent();
InsnGen insnGen = new InsnGen(getFallbackMethodGen(mth), true);
InsnNode prevInsn = null;
for (InsnNode insn : insnArr) {
......@@ -276,7 +277,6 @@ public class MethodGen {
}
prevInsn = insn;
}
code.decIndent();
}
private static boolean needLabel(InsnNode insn, InsnNode prevInsn) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment