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

Method match_sig

cranelift/reader/src/parser.rs:633–641  ·  view source on GitHub ↗

Match and consume a signature reference.

(&mut self, err_msg: &str)

Source from the content-addressed store, hash-verified

631
632 // Match and consume a signature reference.
633 fn match_sig(&mut self, err_msg: &str) -> ParseResult<SigRef> {
634 if let Some(Token::SigRef(sigref)) = self.token() {
635 self.consume();
636 if let Some(sigref) = SigRef::with_number(sigref) {
637 return Ok(sigref);
638 }
639 }
640 err!(self.loc, err_msg)
641 }
642
643 // Match and consume a constant reference.
644 fn match_constant(&mut self) -> ParseResult<Constant> {

Callers 3

parse_signature_declMethod · 0.80
parse_exception_tableMethod · 0.80
parse_inst_operandsMethod · 0.80

Calls 3

OkFunction · 0.85
tokenMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected