mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 02:13:08 +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)
|
(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.
|
/// Returns `true` if the current token is a triple-quoted string of any kind.
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue