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

Method next_is_stop

crates/css_parse/src/parser.rs:274–290  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

272
273 #[inline]
274 pub fn next_is_stop(&self) -> bool {
275 for c in &self.buffer[self.buffer_index..BUFFER_LEN] {
276 if c != self.skip {
277 return c == self.stop;
278 }
279 }
280
281 let mut iter = self.cursor_iter.clone();
282 loop {
283 let Some(cursor) = iter.next() else {
284 return false;
285 };
286 if cursor != self.skip {
287 return cursor == self.stop;
288 }
289 }
290 }
291
292 #[inline]
293 pub(crate) fn peek_n_with_skip(&self, n: u8, skip: KindSet) -> Cursor {

Callers 1

parseMethod · 0.80

Calls 2

cloneMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected