aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src/typing.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-25 09:44:58 +0100
committerAleksey Kladov <[email protected]>2018-08-25 09:44:58 +0100
commit220d285b4afb250e59a08e9b1ad38c2fc2275782 (patch)
treeab32fc8d58ee04fc5afae20bc80f02c6b2557a39 /crates/libeditor/src/typing.rs
parentcf278ed3bf71d336422f7d7d7d51be92b717b720 (diff)
rename ParsedFile -> File
Diffstat (limited to 'crates/libeditor/src/typing.rs')
-rw-r--r--crates/libeditor/src/typing.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libeditor/src/typing.rs b/crates/libeditor/src/typing.rs
index ebc7c77d2..e7eba671f 100644
--- a/crates/libeditor/src/typing.rs
+++ b/crates/libeditor/src/typing.rs
@@ -1,5 +1,5 @@
1use libsyntax2::{ 1use libsyntax2::{
2 TextUnit, TextRange, SyntaxNodeRef, ParsedFile, 2 TextUnit, TextRange, SyntaxNodeRef, File,
3 algo::{ 3 algo::{
4 walk::preorder, 4 walk::preorder,
5 find_covering_node, 5 find_covering_node,
@@ -10,7 +10,7 @@ use libsyntax2::{
10 10
11use {ActionResult, EditBuilder}; 11use {ActionResult, EditBuilder};
12 12
13pub fn join_lines(file: &ParsedFile, range: TextRange) -> ActionResult { 13pub fn join_lines(file: &File, range: TextRange) -> ActionResult {
14 let range = if range.is_empty() { 14 let range = if range.is_empty() {
15 let text = file.syntax().text(); 15 let text = file.syntax().text();
16 let text = &text[TextRange::from_to(range.start(), TextUnit::of_str(&text))]; 16 let text = &text[TextRange::from_to(range.start(), TextUnit::of_str(&text))];