MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / is_singleton

Method is_singleton

crates/sith_python_parser/src/token.rs:389–391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

387 /// Returns `true` if this is a singleton token i.e., `True`, `False`, or `None`.
388 #[inline]
389 pub const fn is_singleton(self) -> bool {
390 matches!(self, TokenKind::False | TokenKind::True | TokenKind::None)
391 }
392
393 /// Returns `true` if this is a trivia token i.e., a comment or a non-logical newline.
394 #[inline]

Callers 1

classify_match_tokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected