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

Method parse_signature_decl

cranelift/reader/src/parser.rs:1723–1733  ·  view source on GitHub ↗

Parse a signature decl. signature-decl ::= SigRef(sigref) "=" signature

(&mut self)

Source from the content-addressed store, hash-verified

1721 // signature-decl ::= SigRef(sigref) "=" signature
1722 //
1723 fn parse_signature_decl(&mut self) -> ParseResult<(SigRef, Signature)> {
1724 let sig = self.match_sig("expected signature number: sig«n»")?;
1725 self.match_token(Token::Equal, "expected '=' in signature decl")?;
1726 let data = self.parse_signature()?;
1727
1728 // Collect any trailing comments.
1729 self.token();
1730 self.claim_gathered_comments(sig);
1731
1732 Ok((sig, data))
1733 }
1734
1735 // Parse a function decl.
1736 //

Callers 1

parse_preambleMethod · 0.80

Calls 6

OkFunction · 0.85
match_sigMethod · 0.80
match_tokenMethod · 0.80
tokenMethod · 0.80
parse_signatureMethod · 0.45

Tested by

no test coverage detected