(pair: Pair<'_, Rule>, is_pure: &mut bool)
| 252 | } |
| 253 | |
| 254 | fn parse_attribute(pair: Pair<'_, Rule>, is_pure: &mut bool) -> Result<()> { |
| 255 | match pair.as_str() { |
| 256 | "pure" => { |
| 257 | if *is_pure { |
| 258 | Err(custom_error(pair.as_span(), "duplicate attribute"))?; |
| 259 | } |
| 260 | *is_pure = true; |
| 261 | } |
| 262 | _ => unreachable!(), |
| 263 | } |
| 264 | Ok(()) |
| 265 | } |
| 266 | |
| 267 | fn parse_operand( |
| 268 | pair: Pair<'_, Rule>, |
no test coverage detected