diff options
author | Aleksey Kladov <[email protected]> | 2020-08-13 15:25:38 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-13 15:29:33 +0100 |
commit | ed20a857f485a471369cd99b843af19a4d875ad0 (patch) | |
tree | 9b99b5ea1b259589b45545429ed6cc9b14532ccc /crates/ra_hir_expand/src | |
parent | 902f74c2697cc2a50de9067845814a2a852fccfd (diff) |
Rename ra_db -> base_db
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r-- | crates/ra_hir_expand/src/builtin_derive.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/builtin_macro.rs | 4 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/db.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/eager.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/hygiene.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/lib.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/name.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/proc_macro.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/src/test_db.rs | 6 |
9 files changed, 12 insertions, 12 deletions
diff --git a/crates/ra_hir_expand/src/builtin_derive.rs b/crates/ra_hir_expand/src/builtin_derive.rs index 2d2f8bcb8..988a60d56 100644 --- a/crates/ra_hir_expand/src/builtin_derive.rs +++ b/crates/ra_hir_expand/src/builtin_derive.rs | |||
@@ -253,8 +253,8 @@ fn partial_ord_expand( | |||
253 | 253 | ||
254 | #[cfg(test)] | 254 | #[cfg(test)] |
255 | mod tests { | 255 | mod tests { |
256 | use base_db::{fixture::WithFixture, CrateId, SourceDatabase}; | ||
256 | use name::{known, Name}; | 257 | use name::{known, Name}; |
257 | use ra_db::{fixture::WithFixture, CrateId, SourceDatabase}; | ||
258 | 258 | ||
259 | use crate::{test_db::TestDB, AstId, MacroCallId, MacroCallKind, MacroCallLoc}; | 259 | use crate::{test_db::TestDB, AstId, MacroCallId, MacroCallKind, MacroCallLoc}; |
260 | 260 | ||
diff --git a/crates/ra_hir_expand/src/builtin_macro.rs b/crates/ra_hir_expand/src/builtin_macro.rs index ae4c84382..86918b626 100644 --- a/crates/ra_hir_expand/src/builtin_macro.rs +++ b/crates/ra_hir_expand/src/builtin_macro.rs | |||
@@ -4,10 +4,10 @@ use crate::{ | |||
4 | MacroDefId, MacroDefKind, TextSize, | 4 | MacroDefId, MacroDefKind, TextSize, |
5 | }; | 5 | }; |
6 | 6 | ||
7 | use base_db::FileId; | ||
7 | use either::Either; | 8 | use either::Either; |
8 | use mbe::parse_to_token_tree; | 9 | use mbe::parse_to_token_tree; |
9 | use parser::FragmentKind; | 10 | use parser::FragmentKind; |
10 | use ra_db::FileId; | ||
11 | use syntax::ast::{self, AstToken, HasStringValue}; | 11 | use syntax::ast::{self, AstToken, HasStringValue}; |
12 | 12 | ||
13 | macro_rules! register_builtin { | 13 | macro_rules! register_builtin { |
@@ -426,7 +426,7 @@ mod tests { | |||
426 | name::AsName, test_db::TestDB, AstNode, EagerCallLoc, MacroCallId, MacroCallKind, | 426 | name::AsName, test_db::TestDB, AstNode, EagerCallLoc, MacroCallId, MacroCallKind, |
427 | MacroCallLoc, | 427 | MacroCallLoc, |
428 | }; | 428 | }; |
429 | use ra_db::{fixture::WithFixture, SourceDatabase}; | 429 | use base_db::{fixture::WithFixture, SourceDatabase}; |
430 | use std::sync::Arc; | 430 | use std::sync::Arc; |
431 | use syntax::ast::NameOwner; | 431 | use syntax::ast::NameOwner; |
432 | 432 | ||
diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs index c275f6b01..dcc038bcd 100644 --- a/crates/ra_hir_expand/src/db.rs +++ b/crates/ra_hir_expand/src/db.rs | |||
@@ -2,9 +2,9 @@ | |||
2 | 2 | ||
3 | use std::sync::Arc; | 3 | use std::sync::Arc; |
4 | 4 | ||
5 | use base_db::{salsa, SourceDatabase}; | ||
5 | use mbe::{ExpandResult, MacroRules}; | 6 | use mbe::{ExpandResult, MacroRules}; |
6 | use parser::FragmentKind; | 7 | use parser::FragmentKind; |
7 | use ra_db::{salsa, SourceDatabase}; | ||
8 | use syntax::{algo::diff, AstNode, GreenNode, Parse, SyntaxKind::*, SyntaxNode}; | 8 | use syntax::{algo::diff, AstNode, GreenNode, Parse, SyntaxKind::*, SyntaxNode}; |
9 | 9 | ||
10 | use crate::{ | 10 | use crate::{ |
diff --git a/crates/ra_hir_expand/src/eager.rs b/crates/ra_hir_expand/src/eager.rs index bd3409f97..10c45646f 100644 --- a/crates/ra_hir_expand/src/eager.rs +++ b/crates/ra_hir_expand/src/eager.rs | |||
@@ -25,8 +25,8 @@ use crate::{ | |||
25 | EagerCallLoc, EagerMacroId, InFile, MacroCallId, MacroCallKind, MacroDefId, MacroDefKind, | 25 | EagerCallLoc, EagerMacroId, InFile, MacroCallId, MacroCallKind, MacroDefId, MacroDefKind, |
26 | }; | 26 | }; |
27 | 27 | ||
28 | use base_db::CrateId; | ||
28 | use parser::FragmentKind; | 29 | use parser::FragmentKind; |
29 | use ra_db::CrateId; | ||
30 | use std::sync::Arc; | 30 | use std::sync::Arc; |
31 | use syntax::{algo::SyntaxRewriter, SyntaxNode}; | 31 | use syntax::{algo::SyntaxRewriter, SyntaxNode}; |
32 | 32 | ||
diff --git a/crates/ra_hir_expand/src/hygiene.rs b/crates/ra_hir_expand/src/hygiene.rs index 23b5eac27..845e9cbc1 100644 --- a/crates/ra_hir_expand/src/hygiene.rs +++ b/crates/ra_hir_expand/src/hygiene.rs | |||
@@ -2,8 +2,8 @@ | |||
2 | //! | 2 | //! |
3 | //! Specifically, `ast` + `Hygiene` allows you to create a `Name`. Note that, at | 3 | //! Specifically, `ast` + `Hygiene` allows you to create a `Name`. Note that, at |
4 | //! this moment, this is horribly incomplete and handles only `$crate`. | 4 | //! this moment, this is horribly incomplete and handles only `$crate`. |
5 | use base_db::CrateId; | ||
5 | use either::Either; | 6 | use either::Either; |
6 | use ra_db::CrateId; | ||
7 | use syntax::ast; | 7 | use syntax::ast; |
8 | 8 | ||
9 | use crate::{ | 9 | use crate::{ |
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index af0cc445f..7425b561a 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs | |||
@@ -18,7 +18,7 @@ pub mod eager; | |||
18 | use std::hash::Hash; | 18 | use std::hash::Hash; |
19 | use std::sync::Arc; | 19 | use std::sync::Arc; |
20 | 20 | ||
21 | use ra_db::{impl_intern_key, salsa, CrateId, FileId}; | 21 | use base_db::{impl_intern_key, salsa, CrateId, FileId}; |
22 | use syntax::{ | 22 | use syntax::{ |
23 | algo, | 23 | algo, |
24 | ast::{self, AstNode}, | 24 | ast::{self, AstNode}, |
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs index 4dcaff088..49841c7a1 100644 --- a/crates/ra_hir_expand/src/name.rs +++ b/crates/ra_hir_expand/src/name.rs | |||
@@ -115,7 +115,7 @@ impl AsName for ast::FieldKind { | |||
115 | } | 115 | } |
116 | } | 116 | } |
117 | 117 | ||
118 | impl AsName for ra_db::Dependency { | 118 | impl AsName for base_db::Dependency { |
119 | fn as_name(&self) -> Name { | 119 | fn as_name(&self) -> Name { |
120 | Name::new_text(SmolStr::new(&*self.name)) | 120 | Name::new_text(SmolStr::new(&*self.name)) |
121 | } | 121 | } |
diff --git a/crates/ra_hir_expand/src/proc_macro.rs b/crates/ra_hir_expand/src/proc_macro.rs index 2c0ec41d2..80255ea32 100644 --- a/crates/ra_hir_expand/src/proc_macro.rs +++ b/crates/ra_hir_expand/src/proc_macro.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | //! Proc Macro Expander stub | 1 | //! Proc Macro Expander stub |
2 | 2 | ||
3 | use crate::{db::AstDatabase, LazyMacroId}; | 3 | use crate::{db::AstDatabase, LazyMacroId}; |
4 | use ra_db::{CrateId, ProcMacroId}; | 4 | use base_db::{CrateId, ProcMacroId}; |
5 | use tt::buffer::{Cursor, TokenBuffer}; | 5 | use tt::buffer::{Cursor, TokenBuffer}; |
6 | 6 | ||
7 | #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] | 7 | #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] |
diff --git a/crates/ra_hir_expand/src/test_db.rs b/crates/ra_hir_expand/src/test_db.rs index 332fa556f..86a5d867e 100644 --- a/crates/ra_hir_expand/src/test_db.rs +++ b/crates/ra_hir_expand/src/test_db.rs | |||
@@ -5,12 +5,12 @@ use std::{ | |||
5 | sync::{Arc, Mutex}, | 5 | sync::{Arc, Mutex}, |
6 | }; | 6 | }; |
7 | 7 | ||
8 | use ra_db::{salsa, CrateId, FileId, FileLoader, FileLoaderDelegate}; | 8 | use base_db::{salsa, CrateId, FileId, FileLoader, FileLoaderDelegate}; |
9 | use rustc_hash::FxHashSet; | 9 | use rustc_hash::FxHashSet; |
10 | 10 | ||
11 | #[salsa::database( | 11 | #[salsa::database( |
12 | ra_db::SourceDatabaseExtStorage, | 12 | base_db::SourceDatabaseExtStorage, |
13 | ra_db::SourceDatabaseStorage, | 13 | base_db::SourceDatabaseStorage, |
14 | crate::db::AstDatabaseStorage | 14 | crate::db::AstDatabaseStorage |
15 | )] | 15 | )] |
16 | #[derive(Default)] | 16 | #[derive(Default)] |