Java: Align BinaryExpr.getOp() with AssignOp.getOp().

This commit is contained in:
Anders Schack-Mulligen
2026-03-04 13:46:04 +01:00
parent fe032a5834
commit 3c129fcd23
5 changed files with 29 additions and 27 deletions

View File

@@ -11,7 +11,9 @@ string ppGuard(Guard g, Boolean branch) {
or
exists(BinaryExpr bin |
bin = g and
result = "'" + bin.getLeftOperand() + bin.getOp() + bin.getRightOperand() + ":" + branch + "'"
result =
"'" + bin.getLeftOperand() + " " + bin.getOp() + " " + bin.getRightOperand() + ":" + branch +
"'"
)
or
exists(SwitchCase cc, Expr s, string match, string value |