itroduce trait for ast tokens

This commit is contained in:
Aleksey Kladov 2019-01-08 12:23:10 +03:00
parent 3f4be81912
commit fa6e0b0d38
12 changed files with 34 additions and 59 deletions

View file

@ -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 {}