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

Method try_content

crates/csskit/src/commands/extract.rs:139–141  ·  view source on GitHub ↗

Try parsing source as raw content before falling back to StyleSheet. Return true if handled.

(&self, _src: &str, _bump: &Bump, _out: &mut Vec<(Span, Self::Row)>)

Source from the content-addressed store, hash-verified

137 /// Try parsing source as raw content before falling back to StyleSheet.
138 /// Return true if handled.
139 fn try_content(&self, _src: &str, _bump: &Bump, _out: &mut Vec<(Span, Self::Row)>) -> bool {
140 false
141 }
142
143 /// Parse and extract from one file. Returns Ok(rows) or Err(error_record).
144 /// `on_stylesheet` is called with the stylesheet while still in scope.

Callers 1

Implementers 3

specificity.rscrates/csskit/src/commands/specificity
colors.rscrates/csskit/src/commands/colors.rs
find.rscrates/csskit/src/commands/find.rs

Calls

no outgoing calls

Tested by

no test coverage detected