error display underline now includes a.f(b) (b) part

This commit is contained in:
Mark
2023-10-27 19:57:45 +02:00
parent cfa5a5e43e
commit 577ef510ce
12 changed files with 39 additions and 2 deletions

View File

@@ -74,6 +74,14 @@ impl From<(SourcePos, SourcePos)> for SourceRange {
}
}
}
impl SourceRange {
pub fn start(&self) -> SourcePos {
self.start
}
pub fn end(&self) -> SourcePos {
self.end
}
}
#[derive(Clone, Debug)]
pub struct CheckError(Vec<CheckErrorComponent>);
#[derive(Clone, Debug)]