summaryrefslogtreecommitdiff
path: root/src/func/macros.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-01-10 13:03:43 +0100
committerLaurenz <laurmaedje@gmail.com>2020-01-10 13:03:43 +0100
commita75ddd2c9356da85b155f5c52fd064c15e6f81b3 (patch)
tree40d63a65d84945bd2cbf33449096e14e84babdf9 /src/func/macros.rs
parent5dbc7dc5aaaea794b140c5ea7839d681110d7b79 (diff)
Convert spans to line/column format 📑
Diffstat (limited to 'src/func/macros.rs')
-rw-r--r--src/func/macros.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/func/macros.rs b/src/func/macros.rs
index bbe04b98..3a32ec09 100644
--- a/src/func/macros.rs
+++ b/src/func/macros.rs
@@ -80,7 +80,7 @@ macro_rules! function {
fn parse(
args: FuncArgs,
- $body: Option<Spanned<&str>>,
+ $body: Option<&str>,
$ctx: ParseContext,
$metadata: Self::Meta,
) -> ParseResult<Self> where Self: Sized {
@@ -144,7 +144,7 @@ macro_rules! parse {
(optional: $body:expr, $ctx:expr) => (
if let Some(body) = $body {
- Some($crate::syntax::parse(body.v, $ctx)?)
+ Some($crate::syntax::parse(body, $ctx)?)
} else {
None
}
@@ -152,7 +152,7 @@ macro_rules! parse {
(expected: $body:expr, $ctx:expr) => (
if let Some(body) = $body {
- $crate::syntax::parse(body.v, $ctx)?
+ $crate::syntax::parse(body, $ctx)?
} else {
error!("expected body");
}