Mark the current position of the cursor as the start of the token which is going to be lexed. Use [`Cursor::token_len`] to get the length of the lexed token.
(&mut self)
| 80 | /// |
| 81 | /// Use [`Cursor::token_len`] to get the length of the lexed token. |
| 82 | pub(super) fn start_token(&mut self) { |
| 83 | self.source_length = self.text_len(); |
| 84 | } |
| 85 | |
| 86 | /// Returns `true` if the cursor is at the end of file. |
| 87 | pub(super) fn is_eof(&self) -> bool { |
no test coverage detected