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.
Properties
Section titled “Properties”ast:
AST
ast contains the parsed or checked expression.
errors?
Section titled “errors?”
optionalerrors?:object
errors contains diagnostics when parsing, checking, or validation fails.
toDisplayString()
Section titled “toDisplayString()”toDisplayString():
string
Returns
Section titled “Returns”string