Diagnostic
A compiler diagnostic.
Example
Fields
annotations @ Array[Annotation]Additional highlighted source regions.
message @ StrThe primary diagnostic message.
notes @ Array[Note]Notes with extra context or help.
patches @ Array[Patch]Suggested edits.
severity @ (:ERROR: | :WARNING:)The severity.
span @ SpanThe primary source span.
Methods
render() -> term.Text
Renders the diagnostic for terminal presentation.
Returns
The rendering, without a final newline.