mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-18 09:31:09 +00:00
Implement TokenKind
for type aliases (#5870)
Part of https://github.com/astral-sh/ruff/issues/5062
This commit is contained in:
parent
d5c43a45b3
commit
41da52a61b
1 changed files with 2 additions and 1 deletions
|
@ -156,6 +156,7 @@ pub enum TokenKind {
|
|||
Try,
|
||||
While,
|
||||
Match,
|
||||
Type,
|
||||
Case,
|
||||
With,
|
||||
Yield,
|
||||
|
@ -426,13 +427,13 @@ impl TokenKind {
|
|||
Tok::While => TokenKind::While,
|
||||
Tok::Match => TokenKind::Match,
|
||||
Tok::Case => TokenKind::Case,
|
||||
Tok::Type => TokenKind::Type,
|
||||
Tok::With => TokenKind::With,
|
||||
Tok::Yield => TokenKind::Yield,
|
||||
Tok::StartModule => TokenKind::StartModule,
|
||||
Tok::StartInteractive => TokenKind::StartInteractive,
|
||||
Tok::StartExpression => TokenKind::StartExpression,
|
||||
Tok::MagicCommand { .. } => todo!(),
|
||||
Tok::Type => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue