diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 09:05:55 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 09:05:55 +0000 |
commit | 3f4be819125ce4a22edd86721fa56b5caba99c2e (patch) | |
tree | be93895ddc08c911585d9f7bc64623a3741f32c6 /crates/ra_syntax/src/yellow | |
parent | 4e444d2bc24d16284401444fd2154f63e0f96070 (diff) | |
parent | 122410d7aa34a32d468a3173858cbc8a2bbc68f5 (diff) |
Merge #449
449: switch to new rowan API r=matklad a=matklad
closes https://github.com/rust-analyzer/rust-analyzer/issues/448
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/yellow')
-rw-r--r-- | crates/ra_syntax/src/yellow/syntax_text.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/yellow/syntax_text.rs b/crates/ra_syntax/src/yellow/syntax_text.rs index 279a83b61..31db0fdab 100644 --- a/crates/ra_syntax/src/yellow/syntax_text.rs +++ b/crates/ra_syntax/src/yellow/syntax_text.rs | |||
@@ -3,17 +3,17 @@ use std::{fmt, ops}; | |||
3 | use ra_text_edit::text_utils::contains_offset_nonstrict; | 3 | use ra_text_edit::text_utils::contains_offset_nonstrict; |
4 | use crate::{ | 4 | use crate::{ |
5 | text_utils::intersect, | 5 | text_utils::intersect, |
6 | SyntaxNodeRef, TextRange, TextUnit, | 6 | SyntaxNode, TextRange, TextUnit, |
7 | }; | 7 | }; |
8 | 8 | ||
9 | #[derive(Clone)] | 9 | #[derive(Clone)] |
10 | pub struct SyntaxText<'a> { | 10 | pub struct SyntaxText<'a> { |
11 | node: SyntaxNodeRef<'a>, | 11 | node: &'a SyntaxNode, |
12 | range: TextRange, | 12 | range: TextRange, |
13 | } | 13 | } |
14 | 14 | ||
15 | impl<'a> SyntaxText<'a> { | 15 | impl<'a> SyntaxText<'a> { |
16 | pub(crate) fn new(node: SyntaxNodeRef<'a>) -> SyntaxText<'a> { | 16 | pub(crate) fn new(node: &'a SyntaxNode) -> SyntaxText<'a> { |
17 | SyntaxText { | 17 | SyntaxText { |
18 | node, | 18 | node, |
19 | range: node.range(), | 19 | range: node.range(), |