(&self, rules: AssociatedWhitespaceRules)
| 80 | } |
| 81 | |
| 82 | pub fn with_associated_whitespace(&self, rules: AssociatedWhitespaceRules) -> Self { |
| 83 | debug_assert!(self.1 == KindSet::DELIM_LIKE); |
| 84 | if self.1.associated_whitespace().to_bits() == rules.to_bits() { |
| 85 | return *self; |
| 86 | } |
| 87 | Self::new(self.offset(), self.token().with_associated_whitespace(rules)) |
| 88 | } |
| 89 | |
| 90 | /// Returns a new [Cursor] with the `sign_is_required` flag set on the token. |
| 91 | /// This indicates that the `+` sign should be preserved during minification. |
nothing calls this directly
no test coverage detected