aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/ast')
-rw-r--r--crates/libsyntax2/src/ast/generated.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs
index b1fd0a8ad..a557e6d73 100644
--- a/crates/libsyntax2/src/ast/generated.rs
+++ b/crates/libsyntax2/src/ast/generated.rs
@@ -14,7 +14,7 @@ pub struct ConstItem<R: TreeRoot = Arc<SyntaxRoot>> {
14impl<R: TreeRoot> AstNode<R> for ConstItem<R> { 14impl<R: TreeRoot> AstNode<R> for ConstItem<R> {
15 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 15 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
16 match syntax.kind() { 16 match syntax.kind() {
17 CONST_ITEM => Some(ConstItem { syntax }), 17 CONST_DEF => Some(ConstItem { syntax }),
18 _ => None, 18 _ => None,
19 } 19 }
20 } 20 }
@@ -33,7 +33,7 @@ pub struct Enum<R: TreeRoot = Arc<SyntaxRoot>> {
33impl<R: TreeRoot> AstNode<R> for Enum<R> { 33impl<R: TreeRoot> AstNode<R> for Enum<R> {
34 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 34 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
35 match syntax.kind() { 35 match syntax.kind() {
36 ENUM => Some(Enum { syntax }), 36 ENUM_DEF => Some(Enum { syntax }),
37 _ => None, 37 _ => None,
38 } 38 }
39 } 39 }
@@ -76,7 +76,7 @@ pub struct Function<R: TreeRoot = Arc<SyntaxRoot>> {
76impl<R: TreeRoot> AstNode<R> for Function<R> { 76impl<R: TreeRoot> AstNode<R> for Function<R> {
77 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 77 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
78 match syntax.kind() { 78 match syntax.kind() {
79 FUNCTION => Some(Function { syntax }), 79 FN_DEF => Some(Function { syntax }),
80 _ => None, 80 _ => None,
81 } 81 }
82 } 82 }
@@ -150,7 +150,7 @@ pub struct StaticItem<R: TreeRoot = Arc<SyntaxRoot>> {
150impl<R: TreeRoot> AstNode<R> for StaticItem<R> { 150impl<R: TreeRoot> AstNode<R> for StaticItem<R> {
151 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 151 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
152 match syntax.kind() { 152 match syntax.kind() {
153 STATIC_ITEM => Some(StaticItem { syntax }), 153 STATIC_DEF => Some(StaticItem { syntax }),
154 _ => None, 154 _ => None,
155 } 155 }
156 } 156 }
@@ -169,7 +169,7 @@ pub struct Struct<R: TreeRoot = Arc<SyntaxRoot>> {
169impl<R: TreeRoot> AstNode<R> for Struct<R> { 169impl<R: TreeRoot> AstNode<R> for Struct<R> {
170 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 170 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
171 match syntax.kind() { 171 match syntax.kind() {
172 STRUCT => Some(Struct { syntax }), 172 STRUCT_DEF => Some(Struct { syntax }),
173 _ => None, 173 _ => None,
174 } 174 }
175 } 175 }
@@ -188,7 +188,7 @@ pub struct Trait<R: TreeRoot = Arc<SyntaxRoot>> {
188impl<R: TreeRoot> AstNode<R> for Trait<R> { 188impl<R: TreeRoot> AstNode<R> for Trait<R> {
189 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 189 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
190 match syntax.kind() { 190 match syntax.kind() {
191 TRAIT => Some(Trait { syntax }), 191 TRAIT_DEF => Some(Trait { syntax }),
192 _ => None, 192 _ => None,
193 } 193 }
194 } 194 }
@@ -207,7 +207,7 @@ pub struct TypeItem<R: TreeRoot = Arc<SyntaxRoot>> {
207impl<R: TreeRoot> AstNode<R> for TypeItem<R> { 207impl<R: TreeRoot> AstNode<R> for TypeItem<R> {
208 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 208 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
209 match syntax.kind() { 209 match syntax.kind() {
210 TYPE_ITEM => Some(TypeItem { syntax }), 210 TYPE_DEF => Some(TypeItem { syntax }),
211 _ => None, 211 _ => None,
212 } 212 }
213 } 213 }