Method
with_quotes
(&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
Tested by
no test coverage detected