Get the current token.
(self)
| 154 | return self.current().type == TokenType.EOF |
| 155 | |
| 156 | def current(self) -> Token: |
| 157 | """Get the current token.""" |
| 158 | if self.pos >= len(self.tokens): |
| 159 | return self.tokens[-1] # Return EOF |
| 160 | return self.tokens[self.pos] |
| 161 | |
| 162 | def previous(self) -> Token: |
| 163 | """Get the previous token.""" |
no outgoing calls
no test coverage detected