Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Beskid.Compiler.SyntaxMirror facade - Design model

Platform spec article

Beskid.Compiler.SyntaxMirror facade - Design model

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

This article documents the design model for Beskid.Compiler.SyntaxMirror facade.

Beskid.Compiler.Query consumes Syntax nodes as read-only views during the process phase; emit uses the same node factory family for typed contributions.

  • Compilation instance — implicit handle to the compilation under construction (Compiler Mod SDK / Beskid.Compiler.Compilation).
  • Syntax snapshot — immutable tree with stable node identities suitable for incremental keys.
  • Capability tokens — host-granted permissions for I/O, diagnostics, and emit operations during mod execution.
  • Mod SDK facades never bypass the host bridge for effects.
  • Generation logic in the reference compiler remains Rust-internal; Beskid sees only the generated Beskid.Compiler.* projection.
  • corelib package module Beskid.Syntax (generated + hand-authored surface; legacy Beskid.Compiler.Syntax paths deprecated).
  • compiler/crates/beskid_analysis/src/syntax/ — authoritative internal model to mirror.