Expand description
Module dependency graph with re-export chain propagation and reachability analysis.
The graph is built from resolved modules and entry points, then used to determine which files are reachable and which exports are referenced.
Modules§
- types
- Shared graph types: module nodes, re-export edges, export symbols, and references.
Structs§
- Coordination
Gap - A single coordination-gap entry: a changed file exports symbols consumed by a
consumermodule that is NOT in the diff. Deduped per (changed, consumer) PAIR (firing-precision rule R2): one entry per distinct consumer module, the consumed-symbol names folded in, never one entry per import statement. - Coordination
GapPaths - A
CoordinationGapwithFileIds resolved to root-relative paths. - Direct
Importer Summary - Importer details for one file that directly imports a target module.
- Edge
- An edge in the module graph.
- Export
Symbol - An export with reference tracking.
- Focus
File Facts - Per-file graph facts for one changed file, used by the focus map.
- Focus
File Facts Paths - The same per-file facts with the
FileIdresolved to a root-relative, forward-slashed path string, sorted for deterministic output. - Graph
ReExport Cycle - A re-export cycle or self-loop detected during Phase 4 chain resolution.
- Impact
Closure - Result of an impact-closure computation. File partitions are
FileIdsets so the caller relativizes paths in its own path-space;ModuleGraph::closure_with_pathsproduces the root-relative path view for serialization. - Impact
Closure Paths - The same closure with
FileIds resolved to root-relative, forward-slashed path strings, sorted for deterministic output. - Imported
Symbol - A symbol imported across an edge.
- Imported
Symbol Summary - Symbol details for a direct import edge.
- Module
Graph - The core module dependency graph.
- Module
Node - A single module in the graph.
- Partition
Order - Result of a partition + order computation, keyed by
FileId/module_dir. The caller relativizes viaModuleGraph::partition_order_with_pathsfor serialization, mirroring theimpact_closure/closure_with_pathspair. - Partition
Order Paths - The same partition + order with each unit’s
FileIds resolved to root-relative, forward-slashed path strings, sorted for deterministic output. - ReExport
Edge - A re-export edge, tracking which exports are forwarded from which module.
- Review
Unit - A single review unit: a coherent by-module cluster of the changed set. The
module_diris the root-relative parent directory shared byfiles; the changed root file (one with no parent directory) clusters under the repository-root key (the empty string). - Review
Unit Paths - A
ReviewUnitwithFileIds resolved to root-relative paths. - Symbol
Reference - A reference to an export from another file.
Enums§
- Reference
Kind - How an export is referenced.