(
env: &mut Environment,
expr: &InExpr,
titles: &[String],
object: &Vec<Box<dyn Value>>,
)
| 560 | } |
| 561 | |
| 562 | fn evaluate_in( |
| 563 | env: &mut Environment, |
| 564 | expr: &InExpr, |
| 565 | titles: &[String], |
| 566 | object: &Vec<Box<dyn Value>>, |
| 567 | ) -> Result<Box<dyn Value>, String> { |
| 568 | let argument = evaluate_expression(env, &expr.argument, titles, object)?; |
| 569 | for value_expr in &expr.values { |
| 570 | let value = evaluate_expression(env, value_expr, titles, object)?; |
| 571 | if argument.equals(&value) { |
| 572 | return Ok(Box::new(BoolValue::new(!expr.has_not_keyword))); |
| 573 | } |
| 574 | } |
| 575 | Ok(Box::new(BoolValue::new(expr.has_not_keyword))) |
| 576 | } |
| 577 | |
| 578 | fn evaluate_is_null( |
| 579 | env: &mut Environment, |
no test coverage detected
searching dependent graphs…