From d5c9adb1174e037592176a4db00704d53b25752b Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 10 Feb 2025 09:13:35 +0100 Subject: [PATCH] rename evaluate_with for Expression --- bindings/python/src/expression.rs | 4 +++- core/expression/src/expression.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bindings/python/src/expression.rs b/bindings/python/src/expression.rs index 0c635c89..602368b2 100644 --- a/bindings/python/src/expression.rs +++ b/bindings/python/src/expression.rs @@ -110,7 +110,9 @@ impl PyExpression { .map(|context| { let result = match &self.expression { Either::Left(standard) => standard.evaluate_with(context, &mut vm), - Either::Right(unary) => unary.evaluate_in(context, &mut vm).map(Variable::Bool), + Either::Right(unary) => { + unary.evaluate_with(context, &mut vm).map(Variable::Bool) + } }; match result { diff --git a/core/expression/src/expression.rs b/core/expression/src/expression.rs index 01444298..28cad6b6 100644 --- a/core/expression/src/expression.rs +++ b/core/expression/src/expression.rs @@ -66,10 +66,10 @@ impl Expression { pub fn evaluate(&self, context: Variable) -> Result { let mut vm = VM::new(); - self.evaluate_in(context, &mut vm) + self.evaluate_with(context, &mut vm) } - pub fn evaluate_in(&self, context: Variable, vm: &mut VM) -> Result { + pub fn evaluate_with(&self, context: Variable, vm: &mut VM) -> Result { let Some(context_object_ref) = context.as_object() else { return Err(IsolateError::MissingContextReference); };