Parse a signature decl. signature-decl ::= SigRef(sigref) "=" signature
(&mut self)
| 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 | // |
no test coverage detected