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

Method with_quotes

crates/css_lexer/src/cursor.rs:75–80  ·  view source on GitHub ↗
(&self, quote_style: QuoteStyle)

Source from the content-addressed store, hash-verified

73 }
74
75 pub fn with_quotes(&self, quote_style: QuoteStyle) -> Self {
76 if *self == quote_style || *self != Kind::String {
77 return *self;
78 }
79 Self::new(self.offset(), self.token().with_quotes(quote_style))
80 }
81
82 pub fn with_associated_whitespace(&self, rules: AssociatedWhitespaceRules) -> Self {
83 debug_assert!(self.1 == KindSet::DELIM_LIKE);

Callers

nothing calls this directly

Calls 2

offsetMethod · 0.45
tokenMethod · 0.45

Tested by

no test coverage detected