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

Method match_type

cranelift/reader/src/parser.rs:563–570  ·  view source on GitHub ↗

Match and consume a type.

(&mut self, err_msg: &str)

Source from the content-addressed store, hash-verified

561
562 // Match and consume a type.
563 fn match_type(&mut self, err_msg: &str) -> ParseResult<Type> {
564 if let Some(Token::Type(t)) = self.token() {
565 self.consume();
566 Ok(t)
567 } else {
568 err!(self.loc, err_msg)
569 }
570 }
571
572 // Match and consume a stack slot reference.
573 fn match_ss(&mut self, err_msg: &str) -> ParseResult<StackSlot> {

Callers 6

parse_abi_paramMethod · 0.80
parse_constant_declMethod · 0.80
parse_block_paramMethod · 0.80
parse_instructionMethod · 0.80

Calls 3

OkFunction · 0.85
tokenMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected