diff options
author | Aleksey Kladov <[email protected]> | 2018-11-06 17:56:32 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-06 17:56:32 +0000 |
commit | dafe747dcc069084fc8bc771c5dcf72e7cb9ec23 (patch) | |
tree | 7b17ad511518a23b06bb0b68e05b5b6c4aae4c76 /crates/ra_syntax/src/yellow | |
parent | d1b242262a6617b22140bddd0bed23115c260e74 (diff) |
upstream basic tree algorithms to rowan
Diffstat (limited to 'crates/ra_syntax/src/yellow')
-rw-r--r-- | crates/ra_syntax/src/yellow/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/yellow/mod.rs b/crates/ra_syntax/src/yellow/mod.rs index 6da948648..cacd89dc8 100644 --- a/crates/ra_syntax/src/yellow/mod.rs +++ b/crates/ra_syntax/src/yellow/mod.rs | |||
@@ -27,7 +27,7 @@ pub type RefRoot<'a> = ::rowan::RefRoot<'a, RaTypes>; | |||
27 | pub type GreenNode = ::rowan::GreenNode<RaTypes>; | 27 | pub type GreenNode = ::rowan::GreenNode<RaTypes>; |
28 | 28 | ||
29 | #[derive(Clone, Copy)] | 29 | #[derive(Clone, Copy)] |
30 | pub struct SyntaxNode<R: TreeRoot<RaTypes> = OwnedRoot>(::rowan::SyntaxNode<RaTypes, R>); | 30 | pub struct SyntaxNode<R: TreeRoot<RaTypes> = OwnedRoot>(pub(crate) ::rowan::SyntaxNode<RaTypes, R>); |
31 | pub type SyntaxNodeRef<'a> = SyntaxNode<RefRoot<'a>>; | 31 | pub type SyntaxNodeRef<'a> = SyntaxNode<RefRoot<'a>>; |
32 | 32 | ||
33 | impl<R1, R2> PartialEq<SyntaxNode<R1>> for SyntaxNode<R2> | 33 | impl<R1, R2> PartialEq<SyntaxNode<R1>> for SyntaxNode<R2> |