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

Method with_severity

crates/css_parse/src/diagnostics.rs:73–76  ·  view source on GitHub ↗

Apply a severity to the given Diagnostic.

(mut self, severity: Severity)

Source from the content-addressed store, hash-verified

71
72 /// Apply a severity to the given Diagnostic.
73 pub fn with_severity(mut self, severity: Severity) -> Self {
74 self.severity = severity;
75 self
76 }
77
78 /// Apply an end Cursor to the given Diagnostic.
79 pub fn with_end_cursor(mut self, end_cursor: Cursor) -> Self {

Callers 2

into_mietteMethod · 0.80
into_diagnosticMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected