Module diag
Expand description
Diagnostics.
Macros§
- eco_
format - Create a new
EcoStringfrom a format string.
Structs§
- EcoString
- An economical string with inline storage and clone-on-write semantics.
- Hinted
String - A string message with hints.
- LineCol
- A line/column pair.
- Load
Error - A call site independent error that occurred during data loading. This avoids
polluting the memoization with [
Span]s andFileIds from source files. Can be turned into aSourceDiagnosticusing theLoadedWithin::withinmethod available onLoadResult. - Source
Diagnostic - An error or warning in a source or text file.
- Warned
- An output alongside warnings generated while producing it.
Enums§
- File
Error - An error that occurred while trying to load of a file.
- Package
Error - An error that occurred while trying to load a package.
- Report
Pos - A position at which an error was reported.
- Severity
- The severity of a
SourceDiagnostic. - Tracepoint
- A part of a diagnostic’s trace.
Traits§
- At
- Convert a
StrResultorHintedStrResultto aSourceResultby adding span information. - Deprecation
Sink - Destination for a deprecation message when accessing a deprecated value.
- Hint
- Enrich a
StrResultorHintedStrResultwith a hint. - Loaded
Within - Convert a
LoadResultto aSourceResultby adding the [Loaded] context. - Trace
- Enrich a
SourceResultwith a tracepoint.
Functions§
- format_
xml_ like_ error - Format a user-facing error message for an XML-like file format.
Type Aliases§
- File
Result - A result type with a file-related error.
- Hinted
StrResult - A result type with a string error message and hints.
- Load
Result - A result type with a data-loading-related error.
- Package
Result - A result type with a package-related error.
- Source
Result - A result that can carry multiple source errors.
- StrResult
- A result type with a string error message.