Skip to main content

Module base

Module base 

Source

Structs§

FragmentIndex

Traits§

EdgeBuilder

Functions§

add_edge
add_edge_unidirectional
add_edges_from_ids
discover_files_by_refs
file_ext
file_representatives
One representative fragment per file — the largest by token count, ties resolved by first-seen order. This is the semantics SiblingEdgeBuilder always used for its file-level edges; file-level relations (an include, a header/impl pair, a path reference) link representatives rather than every-fragment-to-every-fragment, because the relation names the file. A change endorsing a file diffusely must not outweigh a call edge naming one symbol — the fragment-pair encoding gave both the same weight, which is simultaneously the quadratic edge blow-up (envoy: 22M c-family edges) and the file-level noise mechanism of #65. The file’s other fragments are reachable only through nesting and naming edges — the intra-file star is OFF by default and measured net-negative on the corpus (#208) — an accepted trade: a file-level relation endorses the file, not each of its siblings.
link_by_name
link_by_path_match
Links src_id to fragments of files the reference plausibly names.
path_to_module
read_file_cached