Expand description
This crate provides the common error and diagnostics for SDML.
For passing errors the typical Error
and Result
types are provided.
For fine-grained reporting of model issues the diagnostics
module allow for describing
and emitting structured values.
Re-exports§
pub use errors::Error;
pub use diagnostics::Diagnostic;
pub use diagnostics::Reporter;
Modules§
- diagnostics
- Provides project-wide diagnostic types that describe more fine-grained error conditions..
- errors
- Provides the project-wide Error and Result types as well as helper functions.
Structs§
- Source
- A type that holds the source code loaded prior to parsing.
Type Aliases§
- FileId
- An opaque identifier used to index the source associated with a loaded module.
- Source
Files - The mapping of module names to corresponding source code.
- Span
- A span, in bytes, start..end for some context.