diff options
Diffstat (limited to 'crates/ra_hir/src/lib.rs')
-rw-r--r-- | crates/ra_hir/src/lib.rs | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs index 2abcec441..9f133f174 100644 --- a/crates/ra_hir/src/lib.rs +++ b/crates/ra_hir/src/lib.rs | |||
@@ -24,14 +24,17 @@ pub mod source_binder; | |||
24 | mod ids; | 24 | mod ids; |
25 | mod macros; | 25 | mod macros; |
26 | mod name; | 26 | mod name; |
27 | // can't use `crate` or `r#crate` here :( | 27 | mod module_tree; |
28 | mod krate; | 28 | mod nameres; |
29 | mod module; | ||
30 | mod function; | 29 | mod function; |
31 | mod adt; | 30 | mod adt; |
32 | mod type_ref; | 31 | mod type_ref; |
33 | mod ty; | 32 | mod ty; |
34 | mod impl_block; | 33 | mod impl_block; |
34 | mod expr; | ||
35 | |||
36 | mod code_model_api; | ||
37 | mod code_model_impl; | ||
35 | 38 | ||
36 | use crate::{ | 39 | use crate::{ |
37 | db::HirDatabase, | 40 | db::HirDatabase, |
@@ -42,11 +45,11 @@ use crate::{ | |||
42 | pub use self::{ | 45 | pub use self::{ |
43 | path::{Path, PathKind}, | 46 | path::{Path, PathKind}, |
44 | name::Name, | 47 | name::Name, |
45 | krate::Crate, | ||
46 | ids::{HirFileId, DefId, DefLoc, MacroCallId, MacroCallLoc}, | 48 | ids::{HirFileId, DefId, DefLoc, MacroCallId, MacroCallLoc}, |
47 | macros::{MacroDef, MacroInput, MacroExpansion}, | 49 | macros::{MacroDef, MacroInput, MacroExpansion}, |
48 | module::{Module, ModuleId, Problem, nameres::{ItemMap, PerNs, Namespace}, ModuleScope, Resolution}, | 50 | module_tree::ModuleId, |
49 | function::{Function, FnScopes}, | 51 | nameres::{ItemMap, PerNs, Namespace, Resolution}, |
52 | function::{Function, FnSignature, FnScopes, ScopesWithSyntaxMapping}, | ||
50 | adt::{Struct, Enum}, | 53 | adt::{Struct, Enum}, |
51 | ty::Ty, | 54 | ty::Ty, |
52 | impl_block::{ImplBlock, ImplItem}, | 55 | impl_block::{ImplBlock, ImplItem}, |
@@ -54,6 +57,11 @@ pub use self::{ | |||
54 | 57 | ||
55 | pub use self::function::FnSignatureInfo; | 58 | pub use self::function::FnSignatureInfo; |
56 | 59 | ||
60 | pub use self::code_model_api::{ | ||
61 | Crate, CrateDependency, | ||
62 | Module, ModuleSource, Problem, | ||
63 | }; | ||
64 | |||
57 | pub enum Def { | 65 | pub enum Def { |
58 | Module(Module), | 66 | Module(Module), |
59 | Function(Function), | 67 | Function(Function), |