aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_editor/src
diff options
context:
space:
mode:
authorJeremy A. Kolb <[email protected]>2018-10-30 18:07:14 +0000
committerJeremy A. Kolb <[email protected]>2018-10-31 19:23:20 +0000
commit05eb489ec58fbcd36f8d68c74e42166b345a3a3f (patch)
tree17083b18fd209334833423728df1a170ea7a3905 /crates/ra_editor/src
parentd2bcd1a38636a669d2232156fa29010a82e37a3e (diff)
Useful comments from function signatures
Diffstat (limited to 'crates/ra_editor/src')
-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 9d8df25c3..71be15d39 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(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> { 13pub 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 02a1b2d45..b98461ed2 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_selection, 23 extend_selection::{extend, 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},