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§
- Node
Catalog - Caller-supplied current distributions and exact acquired snapshots.
- Node
Fingerprint Builder - Node
Index - An index of addressable nodes in one loaded distribution.
- NodeUri
- A portable address with a canonical Morphir URI spelling.
- Resolved
Node - A resolved occurrence in the normalized semantic model. Equal subtrees can have different addresses, so reverse lookup uses the occurrence’s URI.
- Sha256
Digest - A lowercase SHA-256 digest in canonical hexadecimal form.
Enums§
- Artifact
Revision - Current resolution or a verified immutable artifact snapshot.
- Artifact
Selector - The artifact selected by the caller’s resolution context.
- Indexed
Node Kind - The kind of node found at a semantic address.
- Legacy
Node IdError - Why a V3 sidecar key cannot be migrated to a semantic URI.
- Node
Owner - The package containing a module inside a distribution.
- Node
Resolution Error - Distinct outcomes of semantic node lookup or index construction.
- Node
Root - The first semantic node selected within a distribution.
- Node
Step - One typed child selection. Variants do not carry irrelevant names or indices.
- Node
UriError - 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.