Skip to main content

Module module_graph

Module module_graph 

Source
Expand description

Module graph contracts owned by the engine boundary.

Structs§

ChangedExport
One export of a changed file, with the line facts that the review brief joins on the diff.
ConsumerSearchGapPaths
One consumer that a whole-word text search for an export name does not find, or finds only under another local name.
CoordinationGapPaths
Engine-owned coordination gap between a changed contract and consumer.
DirectImporterSummary
Engine-owned importer details for one file that directly imports a target module.
ExportSearchGapPaths
Literal-search gaps for one export of a changed file.
ExportTestReachPaths
How tests reach one changed value export.
FocusFileFactsPaths
Engine-owned focus facts for one changed file.
ImpactClosurePaths
Engine-owned impact closure with file ids resolved to paths.
ImportedSymbolSummary
Engine-owned symbol details for a direct import edge.
ModuleValueExport
Engine-owned snapshot of one value export in a module graph.
PackageImporters
In-repo importer counts for one third-party package.
PartitionOrderPaths
Engine-owned review partition and dependency-sensible order.
RetainedModuleGraph
Engine-owned retained graph handle.
ReviewUnitPaths
Engine-owned changed-file review unit.
TestReachPaths
Test reach of the changed value exports of a diff.

Enums§

ExportTestReach
How tests reach one export.
TestMaskingState
Why replacement masking is or is not active for test reachability.

Functions§

changed_exports_for_changed_paths
List the exports of absolute changed paths with their declaration lines.
export_lines_for_changed_paths
Compute changed-file export line anchors without exposing graph nodes.
export_names_in_source
The names of the exports that source declares, parsed as the file at path. The names use the format of ChangedExport::export_name.
focus_facts_for_changed_paths
Compute path-resolved focus graph facts for absolute changed paths.
impact_closure_for_changed_paths
Compute a path-resolved impact closure for absolute changed paths.
internal_consumers_for_changed_paths
Compute direct non-diff internal consumer counts for absolute changed paths.
module_value_exports
Return value exports with test-reference state without exposing graph node internals to downstream crates.
package_importers_for_changed_paths
Compute per-package in-repo importer counts for every third-party package the graph saw an import of, value or type-only, split by whether the importer is in the changed set. Type-only importers count because a major bump of a types package is a compile-wide change even when no value crosses the boundary. The dependency decision arm reads these so a new or bumped package.json entry carries the modules it actually reaches. None when the graph recorded no package usage.
partition_order_for_changed_paths
Compute path-resolved partition order for absolute changed paths.
relative_key_path
Canonical path form used inside audit attribution keys: root-relative with forward slashes on every platform. Paths outside root keep their simplified absolute form so keys stay unique.
search_gaps_for_changed_paths
Compute the literal-search gaps of the changed exports.
test_adjacency_for_changed_paths
Compute per-changed-file test adjacency for the review direction: whether a test file imports the changed module directly, and whether one of those tests is itself in the changed set. is_test_path classifies a root-relative, forward-slashed path; the caller owns that definition so the brief’s weakening and direction surfaces agree on it. Changed test files get no entry of their own. None when no module matches a changed path.
test_reach_for_changed_paths
Classify how tests reach the value exports in changed_exports.