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

Method render_text

crates/csskit/src/commands/colors.rs:411–422  ·  view source on GitHub ↗
(&self, _ctx: &ColorContext, file: &str, src: &str, span: Span, row: &ColorData, color: bool)

Source from the content-addressed store, hash-verified

409 }
410
411 fn render_text(&self, _ctx: &ColorContext, file: &str, src: &str, span: Span, row: &ColorData, color: bool) {
412 let lc = if file != "<content>" && file != "-" {
413 let (line, col) = span.line_and_column(src);
414 Some((file, line, col))
415 } else {
416 None
417 };
418 let wcag = self.wcag || self.all;
419 let named = self.named || self.all;
420 print_color_info(row.color, color, self.all, wcag, named, lc);
421 println!();
422 }
423}

Callers

nothing calls this directly

Calls 2

print_color_infoFunction · 0.85
line_and_columnMethod · 0.80

Tested by

no test coverage detected