Skip to main content

Module call_graph

Module call_graph 

Source

Structs§

BfsNode
BuildProgress
CallEdge
CallGraph
CallGraphInputs
Everything the call-graph builder reads, sourced from the GraphProvider facade (PropertyGraph). Replaces the former direct ProjectIndex dependency (#696): the file inventory, the symbol table (for enclosing-symbol attribution) and the import/reexport adjacency (for scope-aware callee resolution). Source content itself is still read fresh from disk per file.
PathHop
SymbolSpan
Minimal symbol span the call-graph builder needs to attribute a call site to its enclosing symbol — backend-agnostic, decoupled from any graph store.

Enums§

RiskLevel

Functions§

build_import_adjacency
Build a file -> imported files adjacency from the project index’s import and reexport edges, used to scope callee resolution to a caller’s imports.
resolve_callee_file
Resolve a single callee name to its defining file in the scope of caller_file.
resolve_callee_files
Resolve callee names to a single defining file when scope makes it unambiguous across all call sites. Names that resolve to different files from different scopes are omitted, so callers never attribute a call to the wrong file. Keyed by callee name to match the call graph’s name-keyed nodes.