diff options
author | Aleksey Kladov <[email protected]> | 2018-08-10 13:07:43 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-10 13:07:43 +0100 |
commit | d7c5a6f3081c2e7266620779d3c32067f947b959 (patch) | |
tree | 2aefb594e062c8fa7cc7879e5df6883f3bc5d015 /src/ast | |
parent | 4a900fd6815d3ea722b5e664aee9eac8bb9cb14f (diff) |
Start lang server
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/generated.rs | 6 | ||||
-rw-r--r-- | src/ast/generated.rs.tera | 2 |
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)] |
9 | pub struct File<R: TreeRoot = Arc<SyntaxRoot>> { | 9 | pub 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)] |
25 | pub struct Function<R: TreeRoot = Arc<SyntaxRoot>> { | 25 | pub 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)] |
41 | pub struct Name<R: TreeRoot = Arc<SyntaxRoot>> { | 41 | pub 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)] |
9 | pub struct {{ Name }}<R: TreeRoot = Arc<SyntaxRoot>> { | 9 | pub struct {{ Name }}<R: TreeRoot = Arc<SyntaxRoot>> { |
10 | syntax: SyntaxNode<R>, | 10 | syntax: SyntaxNode<R>, |
11 | } | 11 | } |