Expand description
Whole-workspace inverted edge builder for Ruby.
Ruby’s query path is intentionally conservative: it emits a hit only when
parser and analyzer facts prove the target. The inverted path follows the same
rule. It records constants resolved by RubySemanticIndex, class-side method
calls such as Klass.call, constructor calls as Klass.initialize, and calls
through self, lexical receivers, factory-return inference, or locally typed
receivers. Unknown receivers and candidate sets with anything other than one
resolved declaration record unproven inbound evidence for bulk dead-code
analysis rather than a proven edge.
Functions§
- scan_
file - One file’s
caller -> calleeedges, for the whole-workspace inverted pass.