(
env: &mut Environment,
global_decl_query: &GlobalVariableDeclQuery,
)
| 167 | } |
| 168 | |
| 169 | fn evaluate_global_declaration_query( |
| 170 | env: &mut Environment, |
| 171 | global_decl_query: &GlobalVariableDeclQuery, |
| 172 | ) -> Result<EvaluationResult, String> { |
| 173 | let value = evaluate_expression(env, &global_decl_query.value, &[], &vec![])?; |
| 174 | env.globals |
| 175 | .insert(global_decl_query.name.to_string(), value); |
| 176 | Ok(EvaluationResult::SetGlobalVariable) |
| 177 | } |
| 178 | |
| 179 | fn evaluate_describe_query( |
| 180 | env: &mut Environment, |
no test coverage detected
searching dependent graphs…