Move line_index

This commit is contained in:
Aleksey Kladov 2020-02-06 12:17:40 +01:00
parent 551f33d754
commit ee2ee1a8ff
4 changed files with 12 additions and 7 deletions

View file

@ -1,6 +1,6 @@
//! FIXME: write short doc here
use crate::TextUnit;
use ra_syntax::TextUnit;
use rustc_hash::FxHashMap;
use superslice::Ext;

View file

@ -1,9 +1,10 @@
//! FIXME: write short doc here
use crate::{line_index::Utf16Char, LineCol, LineIndex};
use ra_syntax::{TextRange, TextUnit};
use ra_text_edit::{AtomTextEdit, TextEdit};
use crate::ide_db::line_index::{LineCol, LineIndex, Utf16Char};
#[derive(Debug, Clone)]
enum Step {
Newline(TextUnit),

View file

@ -1,5 +1,8 @@
//! FIXME: write short doc here
pub mod line_index;
pub mod line_index_utils;
use std::sync::Arc;
use ra_db::{
@ -10,8 +13,9 @@ use ra_db::{
use rustc_hash::FxHashMap;
use crate::{
ide_db::line_index::LineIndex,
symbol_index::{self, SymbolsDatabase},
FeatureFlags, LineIndex,
FeatureFlags,
};
#[salsa::database(

View file

@ -37,8 +37,6 @@ mod assists;
mod diagnostics;
mod syntax_tree;
mod folding_ranges;
mod line_index;
mod line_index_utils;
mod join_lines;
mod typing;
mod matching_brace;
@ -75,9 +73,11 @@ pub use crate::{
feature_flags::FeatureFlags,
folding_ranges::{Fold, FoldKind},
hover::HoverResult,
ide_db::{
line_index::{LineCol, LineIndex},
line_index_utils::translate_offset_with_edit,
},
inlay_hints::{InlayHint, InlayKind},
line_index::{LineCol, LineIndex},
line_index_utils::translate_offset_with_edit,
references::{
Declaration, Reference, ReferenceAccess, ReferenceKind, ReferenceSearchResult, SearchScope,
},