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

Method match_block

cranelift/reader/src/parser.rs:664–671  ·  view source on GitHub ↗

Match and consume a block reference.

(&mut self, err_msg: &str)

Source from the content-addressed store, hash-verified

662
663 // Match and consume a block reference.
664 fn match_block(&mut self, err_msg: &str) -> ParseResult<Block> {
665 if let Some(Token::Block(block)) = self.token() {
666 self.consume();
667 Ok(block)
668 } else {
669 err!(self.loc, err_msg)
670 }
671 }
672
673 // Match and consume a value reference.
674 fn match_value(&mut self, err_msg: &str) -> ParseResult<Value> {

Callers 3

parse_exception_tableMethod · 0.80
parse_basic_blockMethod · 0.80
parse_inst_operandsMethod · 0.80

Calls 3

OkFunction · 0.85
tokenMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected