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

Method is_cdc

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

Source from the content-addressed store, hash-verified

985 /// Checks if the [Token] is [Kind::CdcOrCdo] and is the CDC variant of that token.
986 #[inline]
987 pub const fn is_cdc(&self) -> bool {
988 self.kind_bits() == (Kind::CdcOrCdo as u8) && self.third_flag()
989 }
990
991 /// Some tokens may have a "leading" part:
992 /// - [Kind::AtKeyword] always starts with a `@`,

Callers 2

needs_separator_forMethod · 0.80
convert_tokenFunction · 0.80

Calls 2

kind_bitsMethod · 0.80
third_flagMethod · 0.80

Tested by 1

convert_tokenFunction · 0.64