mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
line_index and line_index_utils moved to ra_ide_api
This commit is contained in:
parent
2a6544f906
commit
fda70badf8
6 changed files with 8 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1005,6 +1005,7 @@ dependencies = [
|
|||
"join_to_string 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"proptest 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"ra_assists 0.1.0",
|
||||
"ra_db 0.1.0",
|
||||
"ra_hir 0.1.0",
|
||||
|
@ -1014,6 +1015,7 @@ dependencies = [
|
|||
"rayon 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"relative-path 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rustc-hash 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"superslice 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"test_utils 0.1.0",
|
||||
"unicase 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
|
|
@ -14,6 +14,7 @@ fst = "0.3.1"
|
|||
rustc-hash = "1.0"
|
||||
parking_lot = "0.7.0"
|
||||
unicase = "2.2.0"
|
||||
superslice = "1.0.0"
|
||||
|
||||
jemallocator = { version = "0.1.9", optional = true }
|
||||
jemalloc-ctl = { version = "0.2.0", optional = true }
|
||||
|
@ -28,6 +29,7 @@ ra_assists = { path = "../ra_assists" }
|
|||
|
||||
[dev-dependencies]
|
||||
insta = "0.7.0"
|
||||
proptest = "0.9.0"
|
||||
|
||||
[features]
|
||||
jemalloc = [ "jemallocator", "jemalloc-ctl" ]
|
||||
|
|
|
@ -33,6 +33,8 @@ mod impls;
|
|||
mod assists;
|
||||
mod diagnostics;
|
||||
mod syntax_tree;
|
||||
mod line_index;
|
||||
mod line_index_utils;
|
||||
|
||||
#[cfg(test)]
|
||||
mod marks;
|
||||
|
@ -60,10 +62,11 @@ pub use crate::{
|
|||
references::ReferenceSearchResult,
|
||||
assists::{Assist, AssistId},
|
||||
hover::{HoverResult},
|
||||
line_index::{LineIndex, LineCol},
|
||||
line_index_utils::translate_offset_with_edit,
|
||||
};
|
||||
pub use ra_ide_api_light::{
|
||||
Fold, FoldKind, HighlightedRange, Severity, StructureNode, LocalEdit,
|
||||
LineIndex, LineCol, translate_offset_with_edit,
|
||||
};
|
||||
pub use ra_db::{
|
||||
Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, SourceRootId,
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
//! an edit or some auxiliary info.
|
||||
|
||||
mod folding_ranges;
|
||||
mod line_index;
|
||||
mod line_index_utils;
|
||||
mod structure;
|
||||
#[cfg(test)]
|
||||
mod test_utils;
|
||||
|
@ -23,8 +21,6 @@ use ra_syntax::{
|
|||
|
||||
pub use crate::{
|
||||
folding_ranges::{folding_ranges, Fold, FoldKind},
|
||||
line_index::{LineCol, LineIndex},
|
||||
line_index_utils::translate_offset_with_edit,
|
||||
structure::{file_structure, StructureNode},
|
||||
join_lines::join_lines,
|
||||
typing::{on_enter, on_dot_typed, on_eq_typed},
|
||||
|
|
Loading…
Reference in a new issue