Skip to content

Commit ee2ee1a

Browse files
committed
Move line_index
1 parent 551f33d commit ee2ee1a

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

crates/ra_ide/src/line_index.rs renamed to crates/ra_ide/src/ide_db/line_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! FIXME: write short doc here
22
3-
use crate::TextUnit;
3+
use ra_syntax::TextUnit;
44
use rustc_hash::FxHashMap;
55
use superslice::Ext;
66

crates/ra_ide/src/line_index_utils.rs renamed to crates/ra_ide/src/ide_db/line_index_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//! FIXME: write short doc here
22
3-
use crate::{line_index::Utf16Char, LineCol, LineIndex};
43
use ra_syntax::{TextRange, TextUnit};
54
use ra_text_edit::{AtomTextEdit, TextEdit};
65

6+
use crate::ide_db::line_index::{LineCol, LineIndex, Utf16Char};
7+
78
#[derive(Debug, Clone)]
89
enum Step {
910
Newline(TextUnit),

crates/ra_ide/src/ide_db/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! FIXME: write short doc here
22
3+
pub mod line_index;
4+
pub mod line_index_utils;
5+
36
use std::sync::Arc;
47

58
use ra_db::{
@@ -10,8 +13,9 @@ use ra_db::{
1013
use rustc_hash::FxHashMap;
1114

1215
use crate::{
16+
ide_db::line_index::LineIndex,
1317
symbol_index::{self, SymbolsDatabase},
14-
FeatureFlags, LineIndex,
18+
FeatureFlags,
1519
};
1620

1721
#[salsa::database(

crates/ra_ide/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ mod assists;
3737
mod diagnostics;
3838
mod syntax_tree;
3939
mod folding_ranges;
40-
mod line_index;
41-
mod line_index_utils;
4240
mod join_lines;
4341
mod typing;
4442
mod matching_brace;
@@ -75,9 +73,11 @@ pub use crate::{
7573
feature_flags::FeatureFlags,
7674
folding_ranges::{Fold, FoldKind},
7775
hover::HoverResult,
76+
ide_db::{
77+
line_index::{LineCol, LineIndex},
78+
line_index_utils::translate_offset_with_edit,
79+
},
7880
inlay_hints::{InlayHint, InlayKind},
79-
line_index::{LineCol, LineIndex},
80-
line_index_utils::translate_offset_with_edit,
8181
references::{
8282
Declaration, Reference, ReferenceAccess, ReferenceKind, ReferenceSearchResult, SearchScope,
8383
},

0 commit comments

Comments
 (0)