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:
Anders Schack-Mulligen
2026-05-26 15:15:00 +02:00
parent 3aa69823af
commit 780591d42a

View File

@@ -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)
)
)
}