aboutsummaryrefslogtreecommitdiff
path: root/src/ast/generated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/generated.rs')
-rw-r--r--src/ast/generated.rs6
1 files changed, 3 insertions, 3 deletions
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<R: TreeRoot> AstNode<R> for File<R> {
22 22
23 23
24#[derive(Debug)] 24#[derive(Debug)]
25pub struct FnItem<R: TreeRoot = Arc<SyntaxRoot>> { 25pub struct Function<R: TreeRoot = Arc<SyntaxRoot>> {
26 syntax: SyntaxNode<R>, 26 syntax: SyntaxNode<R>,
27} 27}
28 28
29impl<R: TreeRoot> AstNode<R> for FnItem<R> { 29impl<R: TreeRoot> AstNode<R> for Function<R> {
30 fn cast(syntax: SyntaxNode<R>) -> Option<Self> { 30 fn cast(syntax: SyntaxNode<R>) -> Option<Self> {
31 match syntax.kind() { 31 match syntax.kind() {
32 FN_ITEM => Some(FnItem { syntax }), 32 FUNCTION => Some(Function { syntax }),
33 _ => None, 33 _ => None,
34 } 34 }
35 } 35 }