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

Method is_ident_like

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

Source from the content-addressed store, hash-verified

670 /// Check if the [Kind] is "Ident Like", i.e. it is [Kind::Ident], [Kind::AtKeyword], [Kind::Function], [Kind::Hash].
671 #[inline(always)]
672 pub(crate) const fn is_ident_like(&self) -> bool {
673 self.kind_bits() & 0b1100 == 0b1000
674 }
675
676 /// Check if the [Kind] is "Delim Like", i.e. it is [Kind::Delim], [Kind::Colon], [Kind::Semicolon], [Kind::Comma],
677 /// [Kind::LeftSquare], [Kind::RightSquare], [Kind::LeftParen], [Kind::RightParen], [Kind::LeftCurly],

Callers 3

can_escapeMethod · 0.80
is_lower_caseMethod · 0.80
atom_bitsMethod · 0.80

Calls 1

kind_bitsMethod · 0.80

Tested by

no test coverage detected