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