mod annotated_diagnostic;
mod diagnostic;
mod errors;
mod lints;
pub use annotated_diagnostic::*;
pub use diagnostic::{Diagnostic, Diagnostics};
pub use errors::Error;
pub use lints::Lint;
use crate::slice_file::Span;
#[derive(Debug)]
pub enum DiagnosticKind {
Error(Error),
Lint(Lint),
Info(String),
}
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub enum DiagnosticLevel {
#[rustfmt::skip] Error,
Warning,
Allowed,
Info,
}
#[derive(Clone, Debug)]
pub struct Note {
pub message: String,
pub span: Option<Span>,
}