(&mut self)
| 257 | |
| 258 | #[inline] |
| 259 | fn next(&mut self) -> Option<Self::Item> { |
| 260 | if self.offset.0 as usize >= self.source.len() { |
| 261 | return None; |
| 262 | } |
| 263 | let offset = self.offset; |
| 264 | let token = self.advance(); |
| 265 | if token.kind() == Kind::Eof { None } else { Some(token.with_cursor(offset)) } |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | #[test] |