MCPcopy Create free account
hub / github.com/csskit/csskit / next

Method next

crates/css_lexer/src/lib.rs:259–266  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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]

Callers 12

decode_non_ascii_atMethod · 0.45
next_charMethod · 0.45
fmt_compacted_identMethod · 0.45
fmt_compacted_stringMethod · 0.45
fmt_expanded_identMethod · 0.45
eq_ignore_ascii_caseMethod · 0.45
parseMethod · 0.45
parse_ascii_lowerMethod · 0.45
consume_hex_escapeMethod · 0.45
parse_escape_sequenceMethod · 0.45

Calls 4

advanceMethod · 0.80
with_cursorMethod · 0.80
lenMethod · 0.45
kindMethod · 0.45

Tested by 1