(
env: &mut Environment,
expr: &LogicalExpr,
titles: &[String],
object: &Vec<Box<dyn Value>>,
)
| 444 | } |
| 445 | |
| 446 | fn evaluate_logical( |
| 447 | env: &mut Environment, |
| 448 | expr: &LogicalExpr, |
| 449 | titles: &[String], |
| 450 | object: &Vec<Box<dyn Value>>, |
| 451 | ) -> Result<Box<dyn Value>, String> { |
| 452 | let lhs = evaluate_expression(env, &expr.left, titles, object)?; |
| 453 | let rhs = evaluate_expression(env, &expr.right, titles, object)?; |
| 454 | match expr.operator { |
| 455 | BinaryLogicalOperator::And => lhs.logical_and_op(&rhs), |
| 456 | BinaryLogicalOperator::Or => lhs.logical_or_op(&rhs), |
| 457 | BinaryLogicalOperator::Xor => lhs.logical_xor_op(&rhs), |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | fn evaluate_bitwise( |
| 462 | env: &mut Environment, |
no test coverage detected
searching dependent graphs…