Expand description
Diagnostics and error reports.
This module contains types for generating an error report: a collection of
diagnostics that describe why an operation failed in detail. Diagnostics
are basically fancy compiler errors: they use SpanId
s to present faulty
input in context.
The Report
type is a reference-counted list of diagnostics, which is
typically passed by reference into functions, but can be copied to simplify
lifetimes, since it’s reference-counted.
Structs§
- A wrapper over
Report
for generating diagnostics. - A diagnostic that is being built up.
- An error type for making returning a
Result
that will trigger diagnostics printing when unwrapped. - Options for a
Report
. - A collection of errors can may built up over the course of an operation.
Enums§
- Something that looks enough like an
ilex::Token
that it could be used for diagnostics.