From c1a7b72fb7c9b69779e490e1d692ddfccec8b57a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 13 Aug 2018 18:27:26 +0300 Subject: renames --- crates/libsyntax2/src/ast/generated.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crates/libsyntax2/src/ast') 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> { impl AstNode for ConstItem { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - CONST_ITEM => Some(ConstItem { syntax }), + CONST_DEF => Some(ConstItem { syntax }), _ => None, } } @@ -33,7 +33,7 @@ pub struct Enum> { impl AstNode for Enum { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - ENUM => Some(Enum { syntax }), + ENUM_DEF => Some(Enum { syntax }), _ => None, } } @@ -76,7 +76,7 @@ pub struct Function> { impl AstNode for Function { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - FUNCTION => Some(Function { syntax }), + FN_DEF => Some(Function { syntax }), _ => None, } } @@ -150,7 +150,7 @@ pub struct StaticItem> { impl AstNode for StaticItem { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - STATIC_ITEM => Some(StaticItem { syntax }), + STATIC_DEF => Some(StaticItem { syntax }), _ => None, } } @@ -169,7 +169,7 @@ pub struct Struct> { impl AstNode for Struct { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - STRUCT => Some(Struct { syntax }), + STRUCT_DEF => Some(Struct { syntax }), _ => None, } } @@ -188,7 +188,7 @@ pub struct Trait> { impl AstNode for Trait { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - TRAIT => Some(Trait { syntax }), + TRAIT_DEF => Some(Trait { syntax }), _ => None, } } @@ -207,7 +207,7 @@ pub struct TypeItem> { impl AstNode for TypeItem { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - TYPE_ITEM => Some(TypeItem { syntax }), + TYPE_DEF => Some(TypeItem { syntax }), _ => None, } } -- cgit v1.2.3