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

Method new

crates/csskit_highlight/src/highlight.rs:15–19  ·  view source on GitHub ↗
(source: String, stylesheet: &StyleSheet)

Source from the content-addressed store, hash-verified

13
14impl CssHighlighter {
15 pub fn new(source: String, stylesheet: &StyleSheet) -> Self {
16 let mut token_colors = TokenHighlighter::new();
17 let _ = stylesheet.accept(&mut token_colors);
18 Self { source, token_colors }
19 }
20}
21
22impl Highlighter for CssHighlighter {

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.80

Tested by

no test coverage detected