MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse

Method parse

tests/all/fuel.rs:15–24  ·  view source on GitHub ↗
(parser: Parser<'a>)

Source from the content-addressed store, hash-verified

13
14impl<'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))]

Callers 3

spawnMethod · 0.45
find_funcsFunction · 0.45
parse_http_addrFunction · 0.45

Calls 4

OkFunction · 0.85
newFunction · 0.50
is_emptyMethod · 0.45
pushMethod · 0.45

Tested by 1

spawnMethod · 0.36