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

Method to_source_cursors

crates/csskit_transform/src/transformer.rs:82–87  ·  view source on GitHub ↗
(&self, parsed: &impl ToCursors)

Source from the content-addressed store, hash-verified

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());
84 let mut sink = CursorToSourceCursorSink::new(self.source_text, &mut cursors);
85 parsed.to_cursors(&mut sink);
86 cursors
87 }
88
89 pub fn to_atom<A: AtomSet + PartialEq>(&self, c: Cursor) -> A {
90 let bits = c.atom_bits();

Callers

nothing calls this directly

Calls 2

bumpMethod · 0.45
to_cursorsMethod · 0.45

Tested by

no test coverage detected