aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-06 11:35:40 +0000
committerAleksey Kladov <[email protected]>2020-02-06 11:35:40 +0000
commit1bfb111cf9ab938a8795f1ad2089cdd8b8c4b7a5 (patch)
treee52b0c00c164d64ee160a95772c92262dad42164 /crates/ra_ide
parentee76e6141e3a6d2dd9c80e260294a4c6360e9fc7 (diff)
Move change to ide-db
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/ide_db/change.rs (renamed from crates/ra_ide/src/change.rs)6
-rw-r--r--crates/ra_ide/src/ide_db/mod.rs1
-rw-r--r--crates/ra_ide/src/lib.rs3
3 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide/src/change.rs b/crates/ra_ide/src/ide_db/change.rs
index a0aeee1f7..62ffa6920 100644
--- a/crates/ra_ide/src/change.rs
+++ b/crates/ra_ide/src/ide_db/change.rs
@@ -13,9 +13,9 @@ use ra_syntax::SourceFile;
13use rayon::prelude::*; 13use rayon::prelude::*;
14use rustc_hash::FxHashMap; 14use rustc_hash::FxHashMap;
15 15
16use crate::{ 16use crate::ide_db::{
17 db::{DebugData, RootDatabase}, 17 symbol_index::{SymbolIndex, SymbolsDatabase},
18 ide_db::symbol_index::{SymbolIndex, SymbolsDatabase}, 18 DebugData, RootDatabase,
19}; 19};
20 20
21#[derive(Default)] 21#[derive(Default)]
diff --git a/crates/ra_ide/src/ide_db/mod.rs b/crates/ra_ide/src/ide_db/mod.rs
index 924ee9968..0df4d510f 100644
--- a/crates/ra_ide/src/ide_db/mod.rs
+++ b/crates/ra_ide/src/ide_db/mod.rs
@@ -4,6 +4,7 @@ pub mod line_index;
4pub mod line_index_utils; 4pub mod line_index_utils;
5pub mod feature_flags; 5pub mod feature_flags;
6pub mod symbol_index; 6pub mod symbol_index;
7pub mod change;
7 8
8use std::sync::Arc; 9use std::sync::Arc;
9 10
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs
index 109b5ad9f..66f365cc3 100644
--- a/crates/ra_ide/src/lib.rs
+++ b/crates/ra_ide/src/lib.rs
@@ -14,7 +14,6 @@ mod ide_db;
14 14
15mod db; 15mod db;
16pub mod mock_analysis; 16pub mod mock_analysis;
17mod change;
18mod source_change; 17mod source_change;
19 18
20mod status; 19mod status;
@@ -67,7 +66,6 @@ use crate::{
67pub use crate::{ 66pub use crate::{
68 assists::{Assist, AssistId}, 67 assists::{Assist, AssistId},
69 call_hierarchy::CallItem, 68 call_hierarchy::CallItem,
70 change::{AnalysisChange, LibraryData},
71 completion::{CompletionItem, CompletionItemKind, InsertTextFormat}, 69 completion::{CompletionItem, CompletionItemKind, InsertTextFormat},
72 diagnostics::Severity, 70 diagnostics::Severity,
73 display::{file_structure, FunctionSignature, NavigationTarget, StructureNode}, 71 display::{file_structure, FunctionSignature, NavigationTarget, StructureNode},
@@ -75,6 +73,7 @@ pub use crate::{
75 folding_ranges::{Fold, FoldKind}, 73 folding_ranges::{Fold, FoldKind},
76 hover::HoverResult, 74 hover::HoverResult,
77 ide_db::{ 75 ide_db::{
76 change::{AnalysisChange, LibraryData},
78 feature_flags::FeatureFlags, 77 feature_flags::FeatureFlags,
79 line_index::{LineCol, LineIndex}, 78 line_index::{LineCol, LineIndex},
80 line_index_utils::translate_offset_with_edit, 79 line_index_utils::translate_offset_with_edit,