aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_editor
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_editor')
-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},