From 335fa2d118718b4dba539294a8ef6c96c5bbf09e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 4 Oct 2020 23:31:35 +0200 Subject: =?UTF-8?q?Small=20improvements=20=F0=9F=8D=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/ast/expr.rs | 3 +++ src/syntax/ast/mod.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/syntax/ast') diff --git a/src/syntax/ast/expr.rs b/src/syntax/ast/expr.rs index 433dcca2..09729f52 100644 --- a/src/syntax/ast/expr.rs +++ b/src/syntax/ast/expr.rs @@ -21,6 +21,9 @@ pub struct ExprCall { /// The name of the function. pub name: Spanned, /// The arguments to the function. + /// + /// In case of a bracketed invocation with a body, the body is _not_ + /// included in the span for the sake of clearer error messages. pub args: Spanned, } diff --git a/src/syntax/ast/mod.rs b/src/syntax/ast/mod.rs index df0fbc23..0d394e54 100644 --- a/src/syntax/ast/mod.rs +++ b/src/syntax/ast/mod.rs @@ -8,4 +8,4 @@ pub use expr::*; pub use lit::*; pub use tree::*; -use super::*; +use super::{Ident, SpanVec, Spanned}; -- cgit v1.2.3