module Noir::CalleeExtractorBase

Overview

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.

Direct including types

Defined in:

miniparsers/callee_extractor_base.cr

Instance Method Summary

Instance Method Detail

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

Attach collected callees to an endpoint as Callee records.


[View source]