Return the byte position within the query string at which the previous token starts. Must be called after `next_token()`, otherwise might panic. OK to call after `next_token()` indicates an EOF.
(&self)
| 1811 | /// Must be called after `next_token()`, otherwise might panic. |
| 1812 | /// OK to call after `next_token()` indicates an EOF. |
| 1813 | fn peek_prev_pos(&self) -> usize { |
| 1814 | assert!(self.index > 0); |
| 1815 | match self.tokens.get(self.index - 1) { |
| 1816 | Some(token) => token.offset, |
| 1817 | None => self.sql.len(), |
| 1818 | } |
| 1819 | } |
| 1820 | |
| 1821 | /// Report unexpected token |
| 1822 | fn expected<D, T>( |
no test coverage detected