diff options
author | Aleksey Kladov <[email protected]> | 2018-08-14 09:20:09 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-14 09:20:09 +0100 |
commit | 2b828c68e8acda628d6e3a36827d1ffd9c9aaec6 (patch) | |
tree | e63ec3bb469eaaf996bbc45c038e66395c04ed23 /crates/libsyntax2/src/ast/mod.rs | |
parent | 49ab44102496ac8c4a05b00c584adecf583f4d87 (diff) |
separete structure from symbols
Diffstat (limited to 'crates/libsyntax2/src/ast/mod.rs')
-rw-r--r-- | crates/libsyntax2/src/ast/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/ast/mod.rs b/crates/libsyntax2/src/ast/mod.rs index 18a9f5d17..f001d340e 100644 --- a/crates/libsyntax2/src/ast/mod.rs +++ b/crates/libsyntax2/src/ast/mod.rs | |||
@@ -10,8 +10,9 @@ use { | |||
10 | }; | 10 | }; |
11 | pub use self::generated::*; | 11 | pub use self::generated::*; |
12 | 12 | ||
13 | pub trait AstNode<R: TreeRoot>: Sized { | 13 | pub trait AstNode<R: TreeRoot> { |
14 | fn cast(syntax: SyntaxNode<R>) -> Option<Self>; | 14 | fn cast(syntax: SyntaxNode<R>) -> Option<Self> |
15 | where Self: Sized; | ||
15 | fn syntax(&self) -> &SyntaxNode<R>; | 16 | fn syntax(&self) -> &SyntaxNode<R>; |
16 | } | 17 | } |
17 | 18 | ||