mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Fix pattern-case variable pretty-printer
This commit is contained in:
@@ -1684,7 +1684,7 @@ class LocalVariableDeclExpr extends Expr, @localvariabledeclexpr {
|
||||
exists(InstanceOfExpr ioe | this.getParent() = ioe | result.isNthChildOf(ioe, 1))
|
||||
or
|
||||
exists(PatternCase pc, int index, int typeAccessIdx | this.isNthChildOf(pc, index) |
|
||||
(if index = 0 then typeAccessIdx = -4 else typeAccessIdx = (-3 - index)) and
|
||||
(if index = 0 then typeAccessIdx = -2 else typeAccessIdx = (-3 - index)) and
|
||||
result.isNthChildOf(pc, typeAccessIdx)
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user