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

Method parse_block_call_arg

cranelift/reader/src/parser.rs:2482–2498  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2480 }
2481
2482 fn parse_block_call_arg(&mut self) -> ParseResult<BlockArg> {
2483 match self.token() {
2484 Some(Token::Value(v)) => {
2485 self.consume();
2486 Ok(BlockArg::Value(v))
2487 }
2488 Some(Token::TryCallRet(i)) => {
2489 self.consume();
2490 Ok(BlockArg::TryCallRet(i))
2491 }
2492 Some(Token::TryCallExn(i)) => {
2493 self.consume();
2494 Ok(BlockArg::TryCallExn(i))
2495 }
2496 tok => Err(self.error(&format!("unexpected token: {tok:?}"))),
2497 }
2498 }
2499
2500 /// Parse a CLIF run command.
2501 ///

Callers 1

Calls 5

OkFunction · 0.85
tokenMethod · 0.80
ValueClass · 0.50
consumeMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected