From e9d392b80b114f835bb8a1f38e19d140a21b2a27 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 22 Sep 2023 10:58:51 -0700 Subject: [PATCH] Fixed linelocation inside user functions --- src/evaluate/operator.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/evaluate/operator.rs b/src/evaluate/operator.rs index 0851212..22c61cd 100644 --- a/src/evaluate/operator.rs +++ b/src/evaluate/operator.rs @@ -19,6 +19,7 @@ pub fn eval_operator(context: &mut Context, g: &Expression) -> Result Result Result { + r.set_linelocation(&args_ll); + return Ok(Some(r)); + }, + + Err( (_, err) ) => { + return Err((args_ll, err)); + } + } }, Operator::Negative => {