Skip to main content

Module module_graph

Module module_graph 

Source
Expand description

Module graph contracts owned by the engine boundary.

Structs§

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.
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.

Functions§

export_lines_for_changed_paths
Compute changed-file export line anchors without exposing graph nodes.
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.
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.