summaryrefslogtreecommitdiff
path: root/src/syntax/ast
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/ast')
-rw-r--r--src/syntax/ast/expr.rs3
-rw-r--r--src/syntax/ast/mod.rs2
2 files changed, 4 insertions, 1 deletions
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<Ident>,
/// 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<LitDict>,
}
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};