Desugar from the outside in
This commit is contained in:
parent
ebc48fff5a
commit
290cef06cb
5 changed files with 62 additions and 165 deletions
|
|
@ -37,6 +37,17 @@ impl Space {
|
|||
span,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn then(mut self, other: Self) -> Self {
|
||||
self.lines.extend(other.lines);
|
||||
self.span = self.span.join(other.span);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn then_line(mut self, line: Line) -> Self {
|
||||
self.lines.push(line);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue