Remember what files error spans come from
This commit is contained in:
parent
7bab866eae
commit
5d191d0edd
6 changed files with 100 additions and 53 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue