MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / parse_entity_list

Function parse_entity_list

src/debug_utils/generic_function/parse.rs:73–83  ·  view source on GitHub ↗
(pair: Pair<'_, Rule>)

Source from the content-addressed store, hash-verified

71}
72
73fn 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
85fn parse_value_declaration(
86 pair: Pair<'_, Rule>,

Callers 3

parse_block_labelFunction · 0.70
parse_opcodeFunction · 0.70
parse_operandFunction · 0.70

Calls 2

pushMethod · 0.80
parse_entityFunction · 0.70

Tested by

no test coverage detected