Roadmap search

Versions, deliverables, workstreams, tasks, and pages

Beskid

Jump to a Beskid service

Beskid.Compiler.SyntaxMirror facade - Examples

articleStandard

src/content/docs/platform-spec/compiler/compiler-mods/beskid-compiler-syntax-facade/examples.mdx

import SpecArticleChrome from '@beskid/beskid-ui/platform-spec/SpecArticleChrome.astro';

<SpecArticleChrome />

This article collects examples for Beskid.Compiler.SyntaxMirror facade (informative sketches aligned with contracts).

Example A — Minimal query

A compile-time module reads a syntax attribute using the query API, then emits a diagnostic without mutating syntax.

Example B — Emitter sketch

A contributor constructs a new method declaration through Beskid.Compiler.Emit, attaches trivia, and registers it with the incremental graph.

Executable snippets will track the reference implementation as mod host execution lands in the compiler; until then, treat these as specification fixtures.