From afa94d4f37b9a0a1e723edffcc79c3d48799bad1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Aug 2018 17:44:40 +0300 Subject: fn_item -> function --- src/ast/generated.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ast/generated.rs') diff --git a/src/ast/generated.rs b/src/ast/generated.rs index 612b04f86..b93c76d0c 100644 --- a/src/ast/generated.rs +++ b/src/ast/generated.rs @@ -22,14 +22,14 @@ impl AstNode for File { #[derive(Debug)] -pub struct FnItem> { +pub struct Function> { syntax: SyntaxNode, } -impl AstNode for FnItem { +impl AstNode for Function { fn cast(syntax: SyntaxNode) -> Option { match syntax.kind() { - FN_ITEM => Some(FnItem { syntax }), + FUNCTION => Some(Function { syntax }), _ => None, } } -- cgit v1.2.3