aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJeremy A. Kolb <[email protected]>2018-10-31 19:27:35 +0000
committerJeremy A. Kolb <[email protected]>2018-10-31 19:27:35 +0000
commit74320945b664916005d263552194201cbe9a52bc (patch)
treeab48f3c40c4e49a9de33fbab673ac07f7146be8e /crates
parent05eb489ec58fbcd36f8d68c74e42166b345a3a3f (diff)
Make extend private again
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_editor/src/extend_selection.rs2
-rw-r--r--crates/ra_editor/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_editor/src/extend_selection.rs b/crates/ra_editor/src/extend_selection.rs
index 71be15d39..9d8df25c3 100644
--- a/crates/ra_editor/src/extend_selection.rs
+++ b/crates/ra_editor/src/extend_selection.rs
@@ -10,7 +10,7 @@ pub fn extend_selection(file: &File, range: TextRange) -> Option<TextRange> {
10 extend(syntax.borrowed(), range) 10 extend(syntax.borrowed(), range)
11} 11}
12 12
13pub fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> { 13pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> {
14 if range.is_empty() { 14 if range.is_empty() {
15 let offset = range.start(); 15 let offset = range.start();
16 let mut leaves = find_leaf_at_offset(root, offset); 16 let mut leaves = find_leaf_at_offset(root, offset);
diff --git a/crates/ra_editor/src/lib.rs b/crates/ra_editor/src/lib.rs
index b98461ed2..02a1b2d45 100644
--- a/crates/ra_editor/src/lib.rs
+++ b/crates/ra_editor/src/lib.rs
@@ -20,7 +20,7 @@ mod typing;
20pub use self::{ 20pub use self::{
21 code_actions::{add_derive, add_impl, flip_comma, introduce_variable, LocalEdit}, 21 code_actions::{add_derive, add_impl, flip_comma, introduce_variable, LocalEdit},
22 edit::{Edit, EditBuilder}, 22 edit::{Edit, EditBuilder},
23 extend_selection::{extend, extend_selection}, 23 extend_selection::extend_selection,
24 folding_ranges::{folding_ranges, Fold, FoldKind}, 24 folding_ranges::{folding_ranges, Fold, FoldKind},
25 line_index::{LineCol, LineIndex}, 25 line_index::{LineCol, LineIndex},
26 symbols::{file_structure, file_symbols, FileSymbol, StructureNode}, 26 symbols::{file_structure, file_symbols, FileSymbol, StructureNode},