Match and consume a global value reference.
(&mut self, err_msg: &str)
| 609 | |
| 610 | // Match and consume a global value reference. |
| 611 | fn match_gv(&mut self, err_msg: &str) -> ParseResult<GlobalValue> { |
| 612 | if let Some(Token::GlobalValue(gv)) = self.token() { |
| 613 | self.consume(); |
| 614 | if let Some(gv) = GlobalValue::with_number(gv) { |
| 615 | return Ok(gv); |
| 616 | } |
| 617 | } |
| 618 | err!(self.loc, err_msg) |
| 619 | } |
| 620 | |
| 621 | // Match and consume a function reference. |
| 622 | fn match_fn(&mut self, err_msg: &str) -> ParseResult<FuncRef> { |
no test coverage detected