module

Noir::CalleeExtractorBase

Shared skeleton for the per-language callee extractors. Each extractor is

module Noir::FooCalleeExtractor
  extend self
  include Noir::CalleeExtractorBase
  # ...language-specific scan_line / skip_callee? / regex tables...
end

and supplies only the language-specific scanning. The generic glue — the Entry tuple shape, attaching collected callees to an endpoint, and de-duplicating them — lives here so a change to the Callee contract lands once instead of being copy-pasted across every extractor.

Instance methods

attach_to(endpoint : Endpoint, callees : Array(Entry))

Attach collected callees to an endpoint as Callee records.

Source

Nested types