Skip to main content

Module graph

Module graph 

Source
Expand description

Incremental module graph storage and deterministic dependency queries.

Import-extraction support is supplied explicitly to ModuleGraph::upsert_file. Callers should pass LanguageRegistry::supports_imports for the analyzed path. Resolver liveness is sampled from ResolverSet at resolution time and stored with the node, so queries need only &self.

Structs§

Coverage
Files used to produce a query answer.
DepEdge
One dependency edge materialized with paths instead of graph slots.
DepsResult
Result of a forward- or reverse-dependency query.
ImportEdge
One resolved import retained by the module graph.
ModuleGraph
Slotted, incrementally maintained repository module graph.
ModuleNode
One occupied module-graph slot.
NeighborhoodResult
Result of a bidirectional breadth-first traversal.

Enums§

EdgeTarget
Target stored on an import edge.
EdgeTargetOwned
Owned target returned by graph queries.
Guarantee
Accuracy attached to a dependency query.
NodeState
State of one module-graph node.
UpsertOutcome
The result of inserting or refreshing one analyzed file.