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

Method is_trivia

crates/sith_python_parser/src/token.rs:395–397  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

393 /// Returns `true` if this is a trivia token i.e., a comment or a non-logical newline.
394 #[inline]
395 pub const fn is_trivia(&self) -> bool {
396 matches!(self, TokenKind::Comment | TokenKind::NonLogicalNewline)
397 }
398
399 #[inline]
400 pub const fn is_arithmetic(self) -> bool {

Callers 2

do_bumpMethod · 0.80
next_non_trivia_tokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected