summaryrefslogblamecommitdiff
path: root/helix-core/src/diagnostic.rs
blob: cf58b9af3ce391985de6fde793acbac0168fd398 (plain) (tree)
1
2
3
4
5
6
7
8
                        





                   


                     
                       
                     
                        
                                   
 
#[derive(Eq, PartialEq)]
pub enum Severity {
    Error,
    Warning,
    Info,
    Hint,
}

pub struct Range {
    pub start: usize,
    pub end: usize,
}
pub struct Diagnostic {
    pub range: Range,
    pub line: usize,
    pub message: String,
    pub severity: Option<Severity>,
}