Skip to content

Commit

Permalink
fixed two static errors in Decompiler.rsc; one missing keyword parame…
Browse files Browse the repository at this point in the history
…ter for an overloaded alternative and two different return types for two overloaded alternatives
  • Loading branch information
jurgenvinju committed Jul 9, 2024
1 parent 94bd199 commit 7e5611c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lang/flybytes/Decompiler.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Method decompile(Method m:static([asm(list[Instruction] instrs)]), bool cleanup=
return cleanup? m[block=done] : m[block=[asm(withStat)]];
}

Method decompile(Method m) = m when \abstract in m.modifiers;
default Method decompile(Method m, bool cleanup=true) = m when \abstract in m.modifiers;

// LINES:
data Instruction(int LINE = -1);
Expand Down Expand Up @@ -612,8 +612,8 @@ BinOp binOp("ALOAD") = aload;

alias UnOp = Exp (Exp);

UnOp invertedCond("NULL") = nonnull;
UnOp invertedCond("NONNULL") = null;
UnOp invertedUnaryCond("NULL") = nonnull;
UnOp invertedUnaryCond("NONNULL") = null;

Exp nonnull(Exp e) = ne(e, null());
Exp null(Exp e) = eq(e, null());
Expand Down

0 comments on commit 7e5611c

Please sign in to comment.