summaryrefslogtreecommitdiff
path: root/helix-core/src/diagnostic.rs
blob: cf58b9af3ce391985de6fde793acbac0168fd398 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[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>,
}