(parser: Parser<'a>)
| 13 | |
| 14 | impl<'a> Parse<'a> for FuelWast<'a> { |
| 15 | fn parse(parser: Parser<'a>) -> parser::Result<Self> { |
| 16 | let mut assertions = Vec::new(); |
| 17 | while !parser.is_empty() { |
| 18 | assertions.push(parser.parens(|p| { |
| 19 | let span = p.parse::<kw::assert_fuel>()?.0; |
| 20 | Ok((span, p.parse()?, p.parens(|p| p.parse())?)) |
| 21 | })?); |
| 22 | } |
| 23 | Ok(FuelWast { assertions }) |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | #[wasmtime_test(wasm_features(bulk_memory, reference_types, gc))] |