From 7fcad452b87c8bd31a9b7dfba78c1b1a92d33dd9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 1 Oct 2020 15:03:37 +0200 Subject: =?UTF-8?q?Reorganize=20ast=20types=20=F0=9F=8F=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/span.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/syntax/span.rs') diff --git a/src/syntax/span.rs b/src/syntax/span.rs index eb029479..62929706 100644 --- a/src/syntax/span.rs +++ b/src/syntax/span.rs @@ -42,8 +42,10 @@ impl Offset for SpanVec { #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] #[cfg_attr(feature = "serialize", derive(serde::Serialize))] pub struct Spanned { - pub span: Span, + /// The spanned value. pub v: T, + /// The location in source code of the value. + pub span: Span, } impl Spanned { -- cgit v1.2.3