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

Method sign_is_required

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

Source from the content-addressed store, hash-verified

761 /// Asserts: the `kind()` is [Kind::Number].
762 #[inline]
763 pub const fn sign_is_required(&self) -> bool {
764 debug_assert!(self.kind_bits() == Kind::Number as u8);
765 self.first_flag()
766 }
767
768 /// Returns a new [Token] with the `sign_is_required` flag set. This indicates that the `+` sign
769 /// should be preserved during minification (e.g., for `an+b` syntax).

Callers 1

fmt_compacted_numberMethod · 0.80

Calls 1

first_flagMethod · 0.80

Tested by

no test coverage detected