Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Source positions and diagnostics.

Structs§

Diagnostic
A problem found in a source, with the name of the file it was found in. It is an error unless it is made as a warning.
Pos
A position in a source text. Both fields are 1-based and the column counts characters.

Enums§

Severity
How serious a diagnostic is. An error means that the inputs are wrong, and a warning that they were used but something was left out or may not be what was meant.

Functions§

shown
The text with every control character written as an escape, so that text from a document that is being read cannot move the cursor, clear the screen or end the line of a diagnostic. Other characters are kept as they are.