diff options
author | Florian Diebold <[email protected]> | 2019-02-24 16:25:41 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-02-24 19:54:04 +0000 |
commit | 5d72b96988587699e0a1c62c08bd76d2a7fed100 (patch) | |
tree | cfc5c55e0d2ba5fcea6b508c20e23cb43b7f9956 /crates/ra_hir/src/db.rs | |
parent | 5a684099e9aa3482b408002030fafe1dcd0fa9a9 (diff) |
Implement support for type aliases
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index fc0ee068c..b8bd82f0c 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -15,7 +15,7 @@ use crate::{ | |||
15 | adt::{StructData, EnumData}, | 15 | adt::{StructData, EnumData}, |
16 | impl_block::{ModuleImplBlocks, ImplSourceMap}, | 16 | impl_block::{ModuleImplBlocks, ImplSourceMap}, |
17 | generics::{GenericParams, GenericDef}, | 17 | generics::{GenericParams, GenericDef}, |
18 | ids::SourceFileItemId, nameres::Namespace | 18 | ids::SourceFileItemId, nameres::Namespace, type_ref::TypeRef, code_model_api::Type |
19 | }; | 19 | }; |
20 | 20 | ||
21 | #[salsa::query_group(PersistentHirDatabaseStorage)] | 21 | #[salsa::query_group(PersistentHirDatabaseStorage)] |
@@ -77,6 +77,9 @@ pub trait PersistentHirDatabase: SourceDatabase + AsRef<HirInterner> { | |||
77 | 77 | ||
78 | #[salsa::invoke(crate::FnSignature::fn_signature_query)] | 78 | #[salsa::invoke(crate::FnSignature::fn_signature_query)] |
79 | fn fn_signature(&self, func: Function) -> Arc<FnSignature>; | 79 | fn fn_signature(&self, func: Function) -> Arc<FnSignature>; |
80 | |||
81 | #[salsa::invoke(crate::type_alias::type_alias_ref_query)] | ||
82 | fn type_alias_ref(&self, typ: Type) -> Arc<TypeRef>; | ||
80 | } | 83 | } |
81 | 84 | ||
82 | #[salsa::query_group(HirDatabaseStorage)] | 85 | #[salsa::query_group(HirDatabaseStorage)] |