(
env: &mut Environment,
expr: &BitwiseExpr,
titles: &[String],
object: &Vec<Box<dyn Value>>,
)
| 459 | } |
| 460 | |
| 461 | fn evaluate_bitwise( |
| 462 | env: &mut Environment, |
| 463 | expr: &BitwiseExpr, |
| 464 | titles: &[String], |
| 465 | object: &Vec<Box<dyn Value>>, |
| 466 | ) -> Result<Box<dyn Value>, String> { |
| 467 | let lhs = evaluate_expression(env, &expr.left, titles, object)?; |
| 468 | let rhs = evaluate_expression(env, &expr.right, titles, object)?; |
| 469 | match expr.operator { |
| 470 | BinaryBitwiseOperator::Or => lhs.or_op(&rhs), |
| 471 | BinaryBitwiseOperator::And => lhs.and_op(&rhs), |
| 472 | BinaryBitwiseOperator::Xor => lhs.xor_op(&rhs), |
| 473 | BinaryBitwiseOperator::RightShift => lhs.shr_op(&rhs), |
| 474 | BinaryBitwiseOperator::LeftShift => lhs.shl_op(&rhs), |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | fn evaluate_call( |
| 479 | env: &mut Environment, |
no test coverage detected
searching dependent graphs…