Skip to main content

Module call_graph

Module call_graph 

Source

Structs§

BfsNode
BuildProgress
CallEdge
CallGraph
PathHop

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.