Skip to content

DiagnosticResult

DiagnosticResult is any frontend result pairing an AST with optional diagnostics.

Both the environment’s CompileResult and the parser’s ParseResult satisfy this, so a single unwrap helper serves every frontend entry point.

ast: AST

ast contains the parsed or checked expression.


optional errors?: object

errors contains diagnostics when parsing, checking, or validation fails.

toDisplayString(): string

string