diff options
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))] |
