mirror of
https://github.com/github/codeql.git
synced 2026-05-29 18:41:27 +02:00
Ruby: Remove spurious parent-child edges for Ruby::SimpleSymbol.
These treesitter nodes translate to multiple AstNodes, but we only want those that are Stmts.
This commit is contained in:
@@ -1974,9 +1974,12 @@ private module CallableBodySynthesis {
|
||||
i = 0 and
|
||||
child = SynthChild(BodyStmtKind())
|
||||
or
|
||||
parent = TBodyStmtSynth(m, 0) and
|
||||
i = 0 and
|
||||
child = childRef(fromGenerated(body))
|
||||
exists(Stmt bodyStmt |
|
||||
parent = TBodyStmtSynth(m, 0) and
|
||||
i = 0 and
|
||||
bodyStmt = fromGenerated(body) and
|
||||
child = childRef(bodyStmt)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user