Parse optional let type.

This commit is contained in:
2026-11-15 12:55:24 +01:00
parent 5b84ce363b
commit 527b97463f
2 changed files with 52 additions and 17 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ impl Span {
self.end - self.start
}
pub fn extend(&self, other: &Span) -> Span {
pub fn to(&self, other: &Span) -> Span {
Span::new(self.start, other.end)
}
}
@@ -52,6 +52,6 @@ impl<T> Spanned<T> {
}
pub fn span_to(&self, other: &Spanned<T>) -> Span {
self.span.extend(&other.span)
self.span.to(&other.span)
}
}