Remove Token::is_trivia method (#11962)

Sorry, a leftover from my rebase
This commit is contained in:
Dhruv Manilawala 2024-06-21 15:54:42 +05:30 committed by GitHub
parent 96da136e6a
commit 27ebff36ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,12 +43,6 @@ impl Token {
(self.kind, self.range)
}
/// Returns `true` if this is a trivia token.
#[inline]
pub const fn is_trivia(self) -> bool {
matches!(self.kind, TokenKind::Comment | TokenKind::NonLogicalNewline)
}
/// Returns `true` if the current token is a triple-quoted string of any kind.
///
/// # Panics