Java: Rename UnaryExpr.getExpr to getOperand.

This commit is contained in:
Anders Schack-Mulligen
2026-02-04 10:50:49 +01:00
parent 6fbf727309
commit 5e6e64b2b7
26 changed files with 67 additions and 62 deletions

View File

@@ -184,7 +184,7 @@ class ForStmt extends ConditionalStmt, @forstmt {
Variable getAnIterationVariable() {
// Check that the variable is assigned to, incremented or decremented in the update expression, and...
exists(Expr update | update = this.getAnUpdate().getAChildExpr*() |
update.(UnaryAssignExpr).getExpr() = result.getAnAccess() or
update.(UnaryAssignExpr).getOperand() = result.getAnAccess() or
update = result.getAnAssignedValue()
) and
// ...that it is checked or used in the condition.