Skip to main content

Crate oxeon_diagnostics

Crate oxeon_diagnostics 

Source
Expand description

Source spans and diagnostics shared by every stage of the Oxeon compiler.

Diagnostic::render prints a diagnostic with the source lines it points at, rustc-style; Diagnostic::render_plain gives a one-line summary.

Structs§

Diagnostic
Edit
Fix
A machine-applicable fix: a set of text replacements.
Label
A secondary location attached to a diagnostic.
RenderOptions
How to render a diagnostic.
Span
A byte range in a single source file.

Enums§

Severity

Functions§

line_col
1-based line and column (in chars) of a byte offset.