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

Method to_source_cursor

crates/css_parse/src/parser.rs:335–337  ·  view source on GitHub ↗
(&self, cursor: Cursor)

Source from the content-addressed store, hash-verified

333 }
334
335 pub fn to_source_cursor(&self, cursor: Cursor) -> SourceCursor<'a> {
336 SourceCursor::from(cursor, cursor.str_slice(self.source_text))
337 }
338
339 pub fn consume_trivia(&mut self) -> Vec<'a, Cursor> {
340 let mut trivia = Vec::new_in(self.bump);

Callers 9

parseMethod · 0.45
peekMethod · 0.45
parseMethod · 0.45
peekMethod · 0.45
parseMethod · 0.45
equals_atomMethod · 0.45
to_atomMethod · 0.45
peekMethod · 0.45
parseMethod · 0.45

Calls 1

str_sliceMethod · 0.80

Tested by

no test coverage detected