Remember what files error spans come from

This commit is contained in:
Joscha 2021-12-12 20:18:58 +00:00
parent 7bab866eae
commit 5d191d0edd
6 changed files with 100 additions and 53 deletions

View file

@ -40,6 +40,12 @@ pub struct Source {
command: usize,
}
impl Source {
pub fn file(&self) -> usize {
self.file
}
}
#[derive(Debug)]
pub struct SourcedCommand<'a> {
pub source: Source,