Name Description Size
diagnostic.rs Diagnostic data structures. 6807
files.rs Source file support for diagnostic reporting. The main trait defined in this module is the [`Files`] trait, which provides provides the minimum amount of functionality required for printing [`Diagnostics`] with the [`term::emit`] function. Simple implementations of this trait are implemented: - [`SimpleFile`]: For single-file use-cases - [`SimpleFiles`]: For multi-file use-cases These data structures provide a pretty minimal API, however, so end-users are encouraged to create their own implementations for their own specific use-cases, such as an implementation that accesses the file system directly (and caches the line start locations), or an implementation using an incremental compilation library like [`salsa`]. [`term::emit`]: crate::term::emit [`Diagnostics`]: crate::diagnostic::Diagnostic [`Files`]: Files [`SimpleFile`]: SimpleFile [`SimpleFiles`]: SimpleFiles [`salsa`]: https://crates.io/crates/salsa 15083
lib.rs Diagnostic reporting support for the codespan crate. 132
term
term.rs Terminal back-end for emitting diagnostics. 3788