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

Method peek_n_including_whitespace

crates/css_parse/src/parser.rs:331–333  ·  view source on GitHub ↗
(&self, n: u8)

Source from the content-addressed store, hash-verified

329
330 #[inline]
331 pub fn peek_n_including_whitespace(&self, n: u8) -> Cursor {
332 self.peek_n_with_skip(n, self.skip.remove(Kind::Whitespace))
333 }
334
335 pub fn to_source_cursor(&self, cursor: Cursor) -> SourceCursor<'a> {
336 SourceCursor::from(cursor, cursor.str_slice(self.source_text))

Callers

nothing calls this directly

Calls 2

peek_n_with_skipMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected