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

Method hash_is_id_like

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

Source from the content-addressed store, hash-verified

965 /// Asserts: The token is [Kind::Hash].
966 #[inline]
967 pub const fn hash_is_id_like(&self) -> bool {
968 debug_assert!(self.kind_bits() == Kind::Hash as u8);
969 self.second_flag()
970 }
971
972 /// Checks if the [Token] is [Kind::BadString] or [Kind::BadUrl], or the "bad flag" has been set.
973 #[inline]

Callers 1

Calls 1

second_flagMethod · 0.80

Tested by

no test coverage detected