Parses an `END` statement.
(&mut self, pos: LineCol)
| 701 | |
| 702 | /// Parses an `END` statement. |
| 703 | fn parse_end(&mut self, pos: LineCol) -> Result<Statement> { |
| 704 | match self.maybe_parse_end(pos)? { |
| 705 | Ok(stmt) => Ok(stmt), |
| 706 | Err(token) => Err(Error::Bad(pos, format!("END {} without {}", token, token))), |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | /// Parses an `EXIT` statement. |
| 711 | fn parse_exit(&mut self, pos: LineCol) -> Result<Statement> { |
no test coverage detected