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

Method extract

crates/csskit/src/commands/specificity.rs:79–82  ·  view source on GitHub ↗
(&self, stylesheet: &StyleSheet<'a>, src: &str, out: &mut Vec<(Span, Self::Row)>)

Source from the content-addressed store, hash-verified

77 }
78
79 fn extract<'a>(&self, stylesheet: &StyleSheet<'a>, src: &str, out: &mut Vec<(Span, Self::Row)>) {
80 let mut visitor = SpecificityVisitor::new(src, out);
81 let _ = stylesheet.accept(&mut visitor);
82 }
83
84 fn render_text(&self, _ctx: &(), _file: &str, _src: &str, _span: Span, row: &Self::Row, _color: bool) {
85 println!("{} ({},{},{})", row.selector, row.a, row.b, row.c);

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.80

Tested by

no test coverage detected