(&self)
| 927 | |
| 928 | #[inline] |
| 929 | pub fn atom_bits(&self) -> u32 { |
| 930 | if self.kind_bits() & 0b1111 == Kind::Dimension as u8 && self.first_flag() { |
| 931 | self.0 & 0b111_1111 |
| 932 | } else if self.is_ident_like() && self.kind_bits() & 0b1111 != Kind::Hash as u8 { |
| 933 | self.0 & LENGTH_MASK |
| 934 | } else { |
| 935 | 0 |
| 936 | } |
| 937 | } |
| 938 | |
| 939 | /// Checks if the [Token] is Trivia-like, that is [Kind::Comment], [Kind::Whitespace], [Kind::Eof] |
| 940 | #[inline] |
no test coverage detected