mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
itroduce trait for ast tokens
This commit is contained in:
parent
3f4be81912
commit
fa6e0b0d38
12 changed files with 34 additions and 59 deletions
|
@ -288,6 +288,7 @@ impl AstNode for Byte {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AstToken for Byte {}
|
||||
impl Byte {}
|
||||
|
||||
// ByteString
|
||||
|
@ -312,6 +313,7 @@ impl AstNode for ByteString {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AstToken for ByteString {}
|
||||
impl ByteString {}
|
||||
|
||||
// CallExpr
|
||||
|
@ -397,6 +399,7 @@ impl AstNode for Char {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AstToken for Char {}
|
||||
impl Char {}
|
||||
|
||||
// Comment
|
||||
|
@ -421,6 +424,7 @@ impl AstNode for Comment {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AstToken for Comment {}
|
||||
impl Comment {}
|
||||
|
||||
// Condition
|
||||
|
@ -1270,6 +1274,7 @@ impl AstNode for Lifetime {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AstToken for Lifetime {}
|
||||
impl Lifetime {}
|
||||
|
||||
// LifetimeParam
|
||||
|
@ -2766,6 +2771,7 @@ impl AstNode for String {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AstToken for String {}
|
||||
impl String {}
|
||||
|
||||
// StructDef
|
||||
|
@ -3391,5 +3397,6 @@ impl AstNode for Whitespace {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AstToken for Whitespace {}
|
||||
impl Whitespace {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue