Skip to main content

Crate miette

Crate miette 

Source
Expand description

Diagnostic protocols and renderers used by Oxc.

This crate defines the Diagnostic and SourceCode protocols together with graphical and JSON renderers. It intentionally does not provide an application error container: callers own diagnostics directly or through boxed trait objects and choose a renderer explicitly.

Structs§

GraphicalReportHandler
GraphicalTheme
Theme used by GraphicalReportHandler.
JSONReportHandler
Renders diagnostics as machine-readable JSON.
LabeledSpan
A labeled SourceSpan.
NamedSource
Utility struct for when you have a regular SourceCode type that doesn’t implement name. For example String. Or if you want to override the name returned by the SourceCode.
SourceSpan
Span within a SourceCode

Enums§

Severity
Diagnostic severity. Renderers use this to change the way diagnostics are displayed. Defaults to Severity::Error.

Traits§

Diagnostic
Adds rich metadata to your Error that can be used by Rich metadata that renderers use to produce human-friendly error messages.
SourceCode
Contiguous source text used by diagnostic renderers.