Move line_index
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
//! FIXME: write short doc here
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::TextUnit;
|
use ra_syntax::TextUnit;
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
use superslice::Ext;
|
use superslice::Ext;
|
||||||
|
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
//! FIXME: write short doc here
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::{line_index::Utf16Char, LineCol, LineIndex};
|
|
||||||
use ra_syntax::{TextRange, TextUnit};
|
use ra_syntax::{TextRange, TextUnit};
|
||||||
use ra_text_edit::{AtomTextEdit, TextEdit};
|
use ra_text_edit::{AtomTextEdit, TextEdit};
|
||||||
|
|
||||||
|
use crate::ide_db::line_index::{LineCol, LineIndex, Utf16Char};
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
enum Step {
|
enum Step {
|
||||||
Newline(TextUnit),
|
Newline(TextUnit),
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
//! FIXME: write short doc here
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
|
pub mod line_index;
|
||||||
|
pub mod line_index_utils;
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ra_db::{
|
use ra_db::{
|
||||||
@@ -10,8 +13,9 @@ use ra_db::{
|
|||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
ide_db::line_index::LineIndex,
|
||||||
symbol_index::{self, SymbolsDatabase},
|
symbol_index::{self, SymbolsDatabase},
|
||||||
FeatureFlags, LineIndex,
|
FeatureFlags,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[salsa::database(
|
#[salsa::database(
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ mod assists;
|
|||||||
mod diagnostics;
|
mod diagnostics;
|
||||||
mod syntax_tree;
|
mod syntax_tree;
|
||||||
mod folding_ranges;
|
mod folding_ranges;
|
||||||
mod line_index;
|
|
||||||
mod line_index_utils;
|
|
||||||
mod join_lines;
|
mod join_lines;
|
||||||
mod typing;
|
mod typing;
|
||||||
mod matching_brace;
|
mod matching_brace;
|
||||||
@@ -75,9 +73,11 @@ pub use crate::{
|
|||||||
feature_flags::FeatureFlags,
|
feature_flags::FeatureFlags,
|
||||||
folding_ranges::{Fold, FoldKind},
|
folding_ranges::{Fold, FoldKind},
|
||||||
hover::HoverResult,
|
hover::HoverResult,
|
||||||
|
ide_db::{
|
||||||
|
line_index::{LineCol, LineIndex},
|
||||||
|
line_index_utils::translate_offset_with_edit,
|
||||||
|
},
|
||||||
inlay_hints::{InlayHint, InlayKind},
|
inlay_hints::{InlayHint, InlayKind},
|
||||||
line_index::{LineCol, LineIndex},
|
|
||||||
line_index_utils::translate_offset_with_edit,
|
|
||||||
references::{
|
references::{
|
||||||
Declaration, Reference, ReferenceAccess, ReferenceKind, ReferenceSearchResult, SearchScope,
|
Declaration, Reference, ReferenceAccess, ReferenceKind, ReferenceSearchResult, SearchScope,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user