diff options
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 3fa4189ce..98abe8523 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -14,9 +14,11 @@ mod db; | |||
14 | mod imp; | 14 | mod imp; |
15 | mod completion; | 15 | mod completion; |
16 | mod symbol_index; | 16 | mod symbol_index; |
17 | mod syntax_highlighting; | ||
18 | pub mod mock_analysis; | 17 | pub mod mock_analysis; |
19 | 18 | ||
19 | mod extend_selection; | ||
20 | mod syntax_highlighting; | ||
21 | |||
20 | use std::{fmt, sync::Arc}; | 22 | use std::{fmt, sync::Arc}; |
21 | 23 | ||
22 | use rustc_hash::FxHashMap; | 24 | use rustc_hash::FxHashMap; |
@@ -277,8 +279,8 @@ impl Analysis { | |||
277 | pub fn file_line_index(&self, file_id: FileId) -> Arc<LineIndex> { | 279 | pub fn file_line_index(&self, file_id: FileId) -> Arc<LineIndex> { |
278 | self.imp.file_line_index(file_id) | 280 | self.imp.file_line_index(file_id) |
279 | } | 281 | } |
280 | pub fn extend_selection(&self, file: &SourceFileNode, range: TextRange) -> TextRange { | 282 | pub fn extend_selection(&self, frange: FileRange) -> TextRange { |
281 | ra_editor::extend_selection(file, range).unwrap_or(range) | 283 | extend_selection::extend_selection(&self.imp.db, frange) |
282 | } | 284 | } |
283 | pub fn matching_brace(&self, file: &SourceFileNode, offset: TextUnit) -> Option<TextUnit> { | 285 | pub fn matching_brace(&self, file: &SourceFileNode, offset: TextUnit) -> Option<TextUnit> { |
284 | ra_editor::matching_brace(file, offset) | 286 | ra_editor::matching_brace(file, offset) |