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

Method to_source_cursor

crates/csskit_transform/src/transformer.rs:78–80  ·  view source on GitHub ↗
(&self, cursor: Cursor)

Source from the content-addressed store, hash-verified

76 }
77
78 pub fn to_source_cursor(&self, cursor: Cursor) -> SourceCursor<'a> {
79 SourceCursor::from(cursor, cursor.str_slice(self.source_text))
80 }
81
82 pub fn to_source_cursors(&self, parsed: &impl ToCursors) -> Vec<'a, SourceCursor<'a>> {
83 let mut cursors = Vec::new_in(self.bump());

Callers 3

visit_timeMethod · 0.45
visit_url_or_stringMethod · 0.45
to_atomMethod · 0.45

Calls 1

str_sliceMethod · 0.80

Tested by

no test coverage detected