Rename ast::TokenKind::Not
as ast::TokenKind::Bang
.
For consistency with `rustc_lexer::TokenKind::Bang`, and because other `ast::TokenKind` variants generally have syntactic names instead of semantic names (e.g. `Star` and `DotDot` instead of `Mul` and `Range`).
This commit is contained in:
parent
2a1e2e9632
commit
53167c0b7f
20 changed files with 48 additions and 48 deletions
|
@ -384,7 +384,7 @@ impl<'psess, 'src> Lexer<'psess, 'src> {
|
|||
rustc_lexer::TokenKind::Colon => token::Colon,
|
||||
rustc_lexer::TokenKind::Dollar => token::Dollar,
|
||||
rustc_lexer::TokenKind::Eq => token::Eq,
|
||||
rustc_lexer::TokenKind::Bang => token::Not,
|
||||
rustc_lexer::TokenKind::Bang => token::Bang,
|
||||
rustc_lexer::TokenKind::Lt => token::Lt,
|
||||
rustc_lexer::TokenKind::Gt => token::Gt,
|
||||
rustc_lexer::TokenKind::Minus => token::Minus,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue