1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
//! Diagnostic categories. /// Standard diagnostic category. #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] #[serde(rename_all = "lowercase")] pub enum DiagnosticCategory { /// Syntax errors. Syntax, /// Structural errors. Structure, /// Type errors. Type, /// Reference errors. Reference, /// Semantic errors. Semantic, /// Compatibility errors. Compatibility, /// Capability errors. Capability, /// Runtime errors. Runtime, /// Extension errors. Extension, }