/// DreamStack Diagnostic — unified error/warning type shared across compiler crates. /// /// Provides Elm-style error rendering with carets, multi-span labels, and suggestions. use ds_parser::Span; // ── Core Types ────────────────────────────────────────── /// A compiler diagnostic — error, warning, or hint. #[derive(Debug, Clone)] pub struct Diagnostic { pub severity: Severity, pub code: Option, pub message: String, pub span: Span, pub labels: Vec