Skip to content

Commit f347784

Browse files
committed
autoformat
1 parent 3d9bc6f commit f347784

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

java/ql/consistency-queries/children.ql

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,14 @@ predicate gapInChildren(Element e, int i) {
5050
// Pattern case statements legitimately have a TypeAccess (-2) and a pattern (0) but not a rule (-1)
5151
not (i = -1 and e instanceof PatternCase and not e.(PatternCase).isRule()) and
5252
// Pattern case statements can have a gap at -3 when they have more than one pattern but no guard.
53-
not (i = -3 and count(e.(PatternCase).getAPattern()) > 1 and not exists(e.(PatternCase).getGuard())) and
53+
not (
54+
i = -3 and count(e.(PatternCase).getAPattern()) > 1 and not exists(e.(PatternCase).getGuard())
55+
) and
5456
// Pattern case statements may have some missing type accesses, depending on the nature of the direct child
55-
not ((i = -2 or i < -4) and e instanceof PatternCase) and
57+
not (
58+
(i = -2 or i < -4) and
59+
e instanceof PatternCase
60+
) and
5661
// Instanceof with a record pattern is not expected to have a type access in position 1
5762
not (i = 1 and e.(InstanceOfExpr).getPattern() instanceof RecordPatternExpr) and
5863
// RecordPatternExpr extracts type-accesses only for its LocalVariableDeclExpr children

0 commit comments

Comments
 (0)