Add desugar command and desugar programs
This commit is contained in:
parent
6eee1ba930
commit
8b21acac9e
6 changed files with 106 additions and 12 deletions
|
|
@ -24,6 +24,14 @@ impl Span {
|
|||
let end = self.end.max(other.end);
|
||||
Self::new(start, end)
|
||||
}
|
||||
|
||||
pub fn at_start(self) -> Self {
|
||||
Self::new(self.start, self.start)
|
||||
}
|
||||
|
||||
pub fn at_end(self) -> Self {
|
||||
Self::new(self.end, self.end)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for Span {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue