Skip to content

Commit

Permalink
🦄 refactor: Redesign ast 32
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Dec 4, 2024
1 parent 914f116 commit bd432a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ public void compile() {

@Override
public void flipBang() {
if (op == Swc4jAstUnaryOp.Bang && arg instanceof ITs2JavaBangFlippable) {
if (isBangFlippable()) {
arg.as(ITs2JavaBangFlippable.class).flipBang();
}
}

@Override
public void flipMinus() {
if (op == Swc4jAstUnaryOp.Minus && arg instanceof ITs2JavaMinusFlippable) {
if (isMinusFlippable()) {
arg.as(ITs2JavaMinusFlippable.class).flipMinus();
}
}
Expand Down

0 comments on commit bd432a6

Please sign in to comment.