Returns the length of the current token length. This is to be used after setting the start position of the token using [`Cursor::start_token`].
(&self)
| 72 | /// This is to be used after setting the start position of the token using |
| 73 | /// [`Cursor::start_token`]. |
| 74 | pub(super) fn token_len(&self) -> TextSize { |
| 75 | self.source_length - self.text_len() |
| 76 | } |
| 77 | |
| 78 | /// Mark the current position of the cursor as the start of the token which is going to be |
| 79 | /// lexed. |