(&self)
| 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. |
no test coverage detected