Skip to main content

Module node_address

Module node_address 

Source
Expand description

Draft, storage-independent addresses for semantic IR nodes.

The authority ir deliberately differs from the V4 document-tree pkg authority. A node URI identifies a node in a normalized distribution, not the file that happened to contain it.

Re-exports§

pub use crate::format_version::ReleaseTriplet as IrFormatVersion;

Structs§

NodeCatalog
Caller-supplied current distributions and exact acquired snapshots.
NodeFingerprintBuilder
NodeIndex
An index of addressable nodes in one loaded distribution.
NodeUri
A portable address with a canonical Morphir URI spelling.
ResolvedNode
A resolved occurrence in the normalized semantic model. Equal subtrees can have different addresses, so reverse lookup uses the occurrence’s URI.
Sha256Digest
A lowercase SHA-256 digest in canonical hexadecimal form.

Enums§

ArtifactRevision
Current resolution or a verified immutable artifact snapshot.
ArtifactSelector
The artifact selected by the caller’s resolution context.
IndexedNodeKind
The kind of node found at a semantic address.
LegacyNodeIdError
Why a V3 sidecar key cannot be migrated to a semantic URI.
NodeOwner
The package containing a module inside a distribution.
NodeResolutionError
Distinct outcomes of semantic node lookup or index construction.
NodeRoot
The first semantic node selected within a distribution.
NodeStep
One typed child selection. Variants do not carry irrelevant names or indices.
NodeUriError
A syntactically invalid semantic node URI.

Functions§

convert_v3_node_id
Convert a key only after traversing its actual V3 node shapes. The index supplies the canonical guard and confirms that the resulting target exists. A sidecar migrator should convert all entries before replacing its file.