(pair: Pair<'_, Rule>)
| 71 | } |
| 72 | |
| 73 | fn parse_entity_list<T: EntityRef>(pair: Pair<'_, Rule>) -> Result<Vec<T>> { |
| 74 | let mut out = vec![]; |
| 75 | for pair in pair.into_inner() { |
| 76 | assert!(matches!( |
| 77 | pair.as_rule(), |
| 78 | Rule::value | Rule::physreg | Rule::regclass | Rule::inst | Rule::block |
| 79 | )); |
| 80 | out.push(parse_entity(pair)?); |
| 81 | } |
| 82 | Ok(out) |
| 83 | } |
| 84 | |
| 85 | fn parse_value_declaration( |
| 86 | pair: Pair<'_, Rule>, |
no test coverage detected