Match and consume a dynamic stack slot reference.
(&mut self, err_msg: &str)
| 582 | |
| 583 | // Match and consume a dynamic stack slot reference. |
| 584 | fn match_dss(&mut self, err_msg: &str) -> ParseResult<DynamicStackSlot> { |
| 585 | if let Some(Token::DynamicStackSlot(ss)) = self.token() { |
| 586 | self.consume(); |
| 587 | if let Some(ss) = DynamicStackSlot::with_number(ss) { |
| 588 | return Ok(ss); |
| 589 | } |
| 590 | } |
| 591 | err!(self.loc, err_msg) |
| 592 | } |
| 593 | |
| 594 | // Match and consume a dynamic type reference. |
| 595 | fn match_dt(&mut self, err_msg: &str) -> ParseResult<DynamicType> { |
no test coverage detected