Expand description
This module contains a formatted error and its methods.
Structsยง
- Formatted
- Formatted compiler error type
undefined value
x
โ> file.leo: 2:8 | 2 | let a = x; | ^ | = help: Initialize a variablex
first. Makes use of the same fields as a BacktracedError. - Label
- Represents error labels.
Enumsยง
- Color
- Represents available colors for error labels.
Functionsยง
- compute_
line_ ๐spans - Compute the start and end columns of the highlight for each line
- print_
code_ ๐line - Print a single line of code with connector and optional highlight
- print_
gap ๐ - Print a gap or ellipsis between blocks of code
- print_
multiline_ ๐underline - Print the final underline for a multi-line highlight (Rust-style with
-
)