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

Method match_value

cranelift/reader/src/parser.rs:674–681  ·  view source on GitHub ↗

Match and consume a value reference.

(&mut self, err_msg: &str)

Source from the content-addressed store, hash-verified

672
673 // Match and consume a value reference.
674 fn match_value(&mut self, err_msg: &str) -> ParseResult<Value> {
675 if let Some(Token::Value(v)) = self.token() {
676 self.consume();
677 Ok(v)
678 } else {
679 err!(self.loc, err_msg)
680 }
681 }
682
683 fn error(&self, message: &str) -> ParseError {
684 ParseError {

Callers 6

parse_exception_tableMethod · 0.80
parse_block_paramMethod · 0.80
parse_inst_resultsMethod · 0.80
parse_value_aliasMethod · 0.80
parse_value_listMethod · 0.80
parse_inst_operandsMethod · 0.80

Calls 3

OkFunction · 0.85
tokenMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected