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

Method has_sign

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

Source from the content-addressed store, hash-verified

751 /// will return `true`.
752 #[inline]
753 pub const fn has_sign(&self) -> bool {
754 self.kind_bits() & 0b1100 == 0b0100 && self.second_flag()
755 }
756
757 /// The [Token] is a [Kind::Number] and the `+` sign is semantically required and should be preserved during
758 /// minification. This is used for numbers in `an+b` syntax (e.g., `:nth-child(+5)`) where the `+` sign

Callers 3

parseMethod · 0.45
can_compact_numberMethod · 0.45
needs_separator_forMethod · 0.45

Calls 2

kind_bitsMethod · 0.80
second_flagMethod · 0.80

Tested by

no test coverage detected