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

Method comment_style

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

Source from the content-addressed store, hash-verified

846 /// If the [Token] is not a [Kind::Comment] this will return [None].
847 #[inline]
848 pub fn comment_style(&self) -> Option<CommentStyle> {
849 if self.kind_bits() == Kind::Comment as u8 { CommentStyle::from_bits((self.0 >> 29) as u8) } else { None }
850 }
851
852 /// Returns the [QuoteStyle].
853 ///

Callers 2

trailing_lenMethod · 0.80
eqMethod · 0.80

Calls 1

kind_bitsMethod · 0.80

Tested by

no test coverage detected