Skip to content

Commit ab9f2a7

Browse files
committed
Move comments
1 parent cc373e3 commit ab9f2a7

File tree

1 file changed

+4
-4
lines changed
  • java/ql/lib/upgrades/ecfcf050952e54b1155fc89525db84af6ad34aaf

1 file changed

+4
-4
lines changed

java/ql/lib/upgrades/ecfcf050952e54b1155fc89525db84af6ad34aaf/exprs.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ predicate hasNewParent(Expr e, ExprParent newParent, int newIndex) {
2929
getParent(e) instanceof LocalVariableDeclExpr and
3030
getParent(getParent(e)) instanceof InstanceOfExpr
3131
then (
32+
// Initialiser moves to hang directly off the instanceof expression
3233
newParent = getParent(getParent(e)) and newIndex = 0
3334
) else (
34-
// Initialiser moves to hang directly off the instanceof expression
3535
if e instanceof LocalVariableDeclExpr and getParent(e) instanceof InstanceOfExpr
36-
then newParent = getParent(e) and newIndex = 2
37-
else
36+
then
3837
// Variable declaration moves to be the instanceof expression's 2nd child
39-
exprs(e, _, _, newParent, newIndex) // Other expressions unchanged
38+
newParent = getParent(e) and newIndex = 2
39+
else exprs(e, _, _, newParent, newIndex) // Other expressions unchanged
4040
)
4141
}
4242

0 commit comments

Comments
 (0)