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

Method new

crates/csskit_ast/src/collector/mod.rs:67–69  ·  view source on GitHub ↗

Create a new collector diagnostic.

(severity: ResolvedDiagnosticLevel, span: Span, message: String)

Source from the content-addressed store, hash-verified

65impl CollectorDiagnostic {
66 /// Create a new collector diagnostic.
67 pub fn new(severity: ResolvedDiagnosticLevel, span: Span, message: String) -> Self {
68 Self { severity, span, message }
69 }
70
71 /// Convert to a Miette diagnostic for display.
72 #[cfg(feature = "miette")]

Callers

nothing calls this directly

Calls 11

SourceOffsetClass · 0.85
iterMethod · 0.80
atom_from_bitsMethod · 0.80
extract_rule_dataMethod · 0.80
process_nested_rulesMethod · 0.80
is_validMethod · 0.80
cloneMethod · 0.80
atom_bitsMethod · 0.45
insertMethod · 0.45
to_spanMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected