diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-26 21:13:52 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-26 21:13:52 +0100 |
| commit | e8470824352064fefbb5d0d30a728211d11cea53 (patch) | |
| tree | 128b49fd0609566584d1c2822db25303806e3e43 /src/syntax/span.rs | |
| parent | aaa48403cdd3d8499584eeca4103865d6425ac1b (diff) | |
Multi-expression blocks 🛍️
Diffstat (limited to 'src/syntax/span.rs')
| -rw-r--r-- | src/syntax/span.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syntax/span.rs b/src/syntax/span.rs index 21fa9ab8..5087dffa 100644 --- a/src/syntax/span.rs +++ b/src/syntax/span.rs @@ -34,6 +34,9 @@ impl<T> Offset for SpanVec<T> { } } +/// A box of a spanned value of type `T`. +pub type SpanBox<T> = Box<Spanned<T>>; + /// A value with the span it corresponds to in the source code. #[derive(Default, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "serde", derive(serde::Serialize))] |
