Match and consume a stack slot reference.
(&mut self, err_msg: &str)
| 571 | |
| 572 | // Match and consume a stack slot reference. |
| 573 | fn match_ss(&mut self, err_msg: &str) -> ParseResult<StackSlot> { |
| 574 | if let Some(Token::StackSlot(ss)) = self.token() { |
| 575 | self.consume(); |
| 576 | if let Some(ss) = StackSlot::with_number(ss) { |
| 577 | return Ok(ss); |
| 578 | } |
| 579 | } |
| 580 | err!(self.loc, err_msg) |
| 581 | } |
| 582 | |
| 583 | // Match and consume a dynamic stack slot reference. |
| 584 | fn match_dss(&mut self, err_msg: &str) -> ParseResult<DynamicStackSlot> { |
no test coverage detected