Skip to main content

Module semantic_link

Module semantic_link 

Source
Expand description

Deterministic semantic linking for canonical RSJS descriptors.

This stage begins after object extraction, rustc relocation resolution, and legacy-to-canonical ABI adaptation. It deliberately never reconstructs identity from an authored path, item spelling, source location, or target directory. Every component/helper edge is selected through a ResolvedTransportWitness.

Build-local definition coordinates are retained in SemanticLinkPlan for final-compilation lookup, but are generally omitted from the reusable semantic graph. Helper relocations are the deliberate exception: each (call, source edge, target definition, target semantic key) tuple controls final JavaScript routing and is therefore authenticated by PlanId. LinkPlanMaterial also includes the exact LinkUnitId, so the final ID binds both the realized build and the complete behavior plan.

Structs§

LinkedNodeRefHandleAlias
One occurrence-specific exact NodeRef<T> object alias.
LinkedSemanticComponent
One canonical component and its exact resolved outgoing graph.
LinkedSemanticComponentSite
One concrete component site in a standalone-root expansion.
LinkedSemanticHelper
One canonical helper and its exact resolved outgoing graph.
LinkedSharedStateProviderOccurrence
One exact lexical SharedState provider occurrence in an admitted root.
LinkedSharedStateProviderRequirement
One component acquisition resolved to an exact lexical provider occurrence.
SemanticComponentEdge
One direct component edge resolved through an exact rustc witness.
SemanticHelperEdge
One helper call resolved through an exact rustc witness.
SemanticLinkPlan
Complete deterministic semantic plan for one exact root link unit.
StandaloneCallbackRequirement
One compiler-owned callback that must be supplied by an analyzed parent edge before a component can participate in a client owner.
StandaloneNodeRefRequirement
Missing incoming NodeRef<T> context that prevents one structurally valid component definition from becoming a standalone render root.
StandaloneRootDecision
Standalone-root decision for one canonical component definition.
StandaloneSharedStateRequirement
Missing lexical SharedState context that prevents one structurally valid component definition from becoming a standalone render root.

Enums§

SemanticLinkError
Fail-closed semantic-link failure.
SemanticPlanSerializationError
Deterministic JSON serialization failure.
SemanticPlanValidationError
Internal-consistency failure in an owned semantic plan.
SemanticPlanWriteError
Atomic semantic-plan persistence failure.
SemanticWitnessKind
Expected semantic meaning of one bridge witness.
StandaloneContextRequirement
One ancestor-supplied context requirement for a standalone root.
StandaloneRootDisposition
Why a component definition does or does not receive an ordinary standalone render occurrence.

Constants§

SEMANTIC_LINK_SCHEMA_VERSION
External semantic-plan schema generation.
SEMANTIC_PLAN_FILE_SUFFIX
Content-addressed filename suffix used by the final compiler.
SEMANTIC_PLAN_FORMAT
Fixed external semantic-plan format discriminator.

Functions§

link_semantic_plan
Link canonical descriptors using only relocation-resolved witness records.
semantic_plan_json
Serialize a validated semantic plan into deterministic external JSON.
validate_semantic_plan
Recompute every strong identity carried by an owned semantic plan.
write_content_addressed_semantic_plan
Atomically persist a semantic plan under its strong PlanId.