mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 05:26:23 +00:00
Remove Token::is_trivia
method (#11962)
Sorry, a leftover from my rebase
This commit is contained in:
parent
96da136e6a
commit
27ebff36ec
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue