Expand description
Terminal renderer — produces a plain-text representation of an LSDS
crate::Diagnostic.
The output shape approximates the existing ShapeError::SemanticError
rendering for borrow errors so a shape-runtime CLI consumer (or the
existing eprintln! paths) can switch to LSDS without users noticing
a regression.
Layout (roughly):
error[B0013]: cannot pass the same variable to multiple parameters that require non-aliased access
--> src/main.shape:12:4
= expected: int (witness: 42)
= found: string (witness: "hello")
= hint: use separate variables or clone one of the arguments
= note: conflicting argument originates here (src/main.shape:9:2)
= rule: ADR-006-§1.1No ANSI colour for now. A ColorMode parameter is the natural
follow-up; deferred to a later session per dispatch scope.
Functions§
- render
- Render a single
Diagnosticto plain text.