(
env: &mut Environment,
expr: &ArrayExpr,
titles: &[String],
object: &Vec<Box<dyn Value>>,
)
| 242 | } |
| 243 | |
| 244 | fn evaluate_array( |
| 245 | env: &mut Environment, |
| 246 | expr: &ArrayExpr, |
| 247 | titles: &[String], |
| 248 | object: &Vec<Box<dyn Value>>, |
| 249 | ) -> Result<Box<dyn Value>, String> { |
| 250 | let mut values: Vec<Box<dyn Value>> = Vec::with_capacity(expr.values.len()); |
| 251 | for value in &expr.values { |
| 252 | values.push(evaluate_expression(env, value, titles, object)?); |
| 253 | } |
| 254 | Ok(Box::new(ArrayValue::new(values, expr.element_type.clone()))) |
| 255 | } |
| 256 | |
| 257 | fn evaluate_global_variable( |
| 258 | env: &mut Environment, |
no test coverage detected
searching dependent graphs…