mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Pretty-print AST: handle instanceof with record pattern
This commit is contained in:
@@ -385,7 +385,12 @@ private class PpInstanceOfExpr extends PpAst, InstanceOfExpr {
|
||||
or
|
||||
i = 3 and result = " " and this.isPattern()
|
||||
or
|
||||
i = 4 and result = this.getLocalVariableDeclExpr().getName()
|
||||
i = 4 and
|
||||
(
|
||||
result = this.getPattern().asBindingPattern().getName()
|
||||
or
|
||||
result = this.getPattern().asRecordPattern().toString()
|
||||
)
|
||||
}
|
||||
|
||||
override PpAst getChild(int i) {
|
||||
|
||||
Reference in New Issue
Block a user