aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ast/generated.rs6
-rw-r--r--src/ast/generated.rs.tera2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ast/generated.rs b/src/ast/generated.rs
index b93c76d0c..2f813050a 100644
--- a/src/ast/generated.rs
+++ b/src/ast/generated.rs
@@ -5,7 +5,7 @@ use {
5}; 5};
6 6
7 7
8#[derive(Debug)] 8#[derive(Debug, Clone, Copy)]
9pub struct File<R: TreeRoot = Arc<SyntaxRoot>> { 9pub struct File<R: TreeRoot = Arc<SyntaxRoot>> {
10 syntax: SyntaxNode<R>, 10 syntax: SyntaxNode<R>,
11} 11}
@@ -21,7 +21,7 @@ impl<R: TreeRoot> AstNode<R> for File<R> {
21} 21}
22 22
23 23
24#[derive(Debug)] 24#[derive(Debug, Clone, Copy)]
25pub struct Function<R: TreeRoot = Arc<SyntaxRoot>> { 25pub struct Function<R: TreeRoot = Arc<SyntaxRoot>> {
26 syntax: SyntaxNode<R>, 26 syntax: SyntaxNode<R>,
27} 27}
@@ -37,7 +37,7 @@ impl<R: TreeRoot> AstNode<R> for Function<R> {
37} 37}
38 38
39 39
40#[derive(Debug)] 40#[derive(Debug, Clone, Copy)]
41pub struct Name<R: TreeRoot = Arc<SyntaxRoot>> { 41pub struct Name<R: TreeRoot = Arc<SyntaxRoot>> {
42 syntax: SyntaxNode<R>, 42 syntax: SyntaxNode<R>,
43} 43}
diff --git a/src/ast/generated.rs.tera b/src/ast/generated.rs.tera
index f2559383a..242837801 100644
--- a/src/ast/generated.rs.tera
+++ b/src/ast/generated.rs.tera
@@ -5,7 +5,7 @@ use {
5}; 5};
6{% for node in ast %} 6{% for node in ast %}
7{% set Name = node.kind | camel %} 7{% set Name = node.kind | camel %}
8#[derive(Debug)] 8#[derive(Debug, Clone, Copy)]
9pub struct {{ Name }}<R: TreeRoot = Arc<SyntaxRoot>> { 9pub struct {{ Name }}<R: TreeRoot = Arc<SyntaxRoot>> {
10 syntax: SyntaxNode<R>, 10 syntax: SyntaxNode<R>,
11} 11}