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

Method associated_whitespace

crates/css_lexer/src/token.rs:821–827  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

819 /// [Kind::RightCurly]) then this will always return `AssociatedWhitespaceRules::none()`.
820 #[inline]
821 pub fn associated_whitespace(&self) -> AssociatedWhitespaceRules {
822 if self.is_delim_like() {
823 AssociatedWhitespaceRules::from_bits((self.0 >> 29) as u8)
824 } else {
825 AssociatedWhitespaceRules::none()
826 }
827 }
828
829 /// Returns a new [Token] with the [AssociatedWhitespaceRules] set to the given [AssociatedWhitespaceRules],
830 /// if possible.

Callers 4

fmtMethod · 0.80
eqMethod · 0.80
parseMethod · 0.80

Calls 1

is_delim_likeMethod · 0.80

Tested by

no test coverage detected