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. Reachability of the file’s other fragments is the containment star’s job.
link_by_name
link_by_path_match
Links src_id to fragments of files the reference plausibly names.
path_to_module
read_file_cached