diff options
Diffstat (limited to 'crates/ra_hir/src/lib.rs')
-rw-r--r-- | crates/ra_hir/src/lib.rs | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs index ca261e8f5..40f5562b4 100644 --- a/crates/ra_hir/src/lib.rs +++ b/crates/ra_hir/src/lib.rs | |||
@@ -26,25 +26,19 @@ macro_rules! impl_froms { | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | mod either; | ||
30 | pub mod debug; | 29 | pub mod debug; |
31 | 30 | ||
32 | pub mod db; | 31 | pub mod db; |
33 | #[macro_use] | 32 | #[macro_use] |
34 | pub mod mock; | 33 | pub mod mock; |
35 | mod path; | ||
36 | pub mod source_binder; | 34 | pub mod source_binder; |
37 | 35 | ||
38 | mod source_id; | ||
39 | mod ids; | 36 | mod ids; |
40 | mod name; | ||
41 | mod nameres; | 37 | mod nameres; |
42 | mod adt; | 38 | mod adt; |
43 | mod traits; | 39 | mod traits; |
44 | mod type_alias; | 40 | mod type_alias; |
45 | mod type_ref; | ||
46 | mod ty; | 41 | mod ty; |
47 | mod attr; | ||
48 | mod impl_block; | 42 | mod impl_block; |
49 | mod expr; | 43 | mod expr; |
50 | mod lang_item; | 44 | mod lang_item; |
@@ -60,37 +54,35 @@ pub mod from_source; | |||
60 | #[cfg(test)] | 54 | #[cfg(test)] |
61 | mod marks; | 55 | mod marks; |
62 | 56 | ||
63 | use crate::{ | 57 | use hir_expand::AstId; |
64 | ids::MacroFileKind, | 58 | |
65 | name::AsName, | 59 | use crate::{ids::MacroFileKind, resolve::Resolver}; |
66 | resolve::Resolver, | ||
67 | source_id::{AstId, FileAstId}, | ||
68 | }; | ||
69 | 60 | ||
70 | pub use self::{ | 61 | pub use crate::{ |
71 | adt::VariantDef, | 62 | adt::VariantDef, |
72 | either::Either, | 63 | code_model::{ |
64 | docs::{DocDef, Docs, Documentation}, | ||
65 | src::{HasBodySource, HasSource, Source}, | ||
66 | Adt, AssocItem, Const, ConstData, Container, Crate, CrateDependency, DefWithBody, Enum, | ||
67 | EnumVariant, FieldSource, FnData, Function, HasBody, MacroDef, Module, ModuleDef, | ||
68 | ModuleSource, Static, Struct, StructField, Trait, TypeAlias, Union, | ||
69 | }, | ||
73 | expr::ExprScopes, | 70 | expr::ExprScopes, |
74 | from_source::FromSource, | 71 | from_source::FromSource, |
75 | generics::{GenericDef, GenericParam, GenericParams, HasGenericParams}, | 72 | generics::{GenericDef, GenericParam, GenericParams, HasGenericParams}, |
76 | ids::{HirFileId, MacroCallId, MacroCallLoc, MacroDefId, MacroFile}, | 73 | ids::{HirFileId, MacroCallId, MacroCallLoc, MacroDefId, MacroFile}, |
77 | impl_block::ImplBlock, | 74 | impl_block::ImplBlock, |
78 | name::Name, | ||
79 | nameres::{ImportId, Namespace, PerNs}, | 75 | nameres::{ImportId, Namespace, PerNs}, |
80 | path::{Path, PathKind}, | ||
81 | resolve::ScopeDef, | 76 | resolve::ScopeDef, |
82 | source_binder::{PathResolution, ScopeEntryWithSyntax, SourceAnalyzer}, | 77 | source_binder::{PathResolution, ScopeEntryWithSyntax, SourceAnalyzer}, |
83 | source_id::{AstIdMap, ErasedFileAstId}, | ||
84 | ty::{ | 78 | ty::{ |
85 | display::HirDisplay, ApplicationTy, CallableDef, Substs, TraitRef, Ty, TypeCtor, TypeWalk, | 79 | display::HirDisplay, ApplicationTy, CallableDef, Substs, TraitRef, Ty, TypeCtor, TypeWalk, |
86 | }, | 80 | }, |
87 | type_ref::Mutability, | ||
88 | }; | 81 | }; |
89 | 82 | ||
90 | pub use self::code_model::{ | 83 | pub use hir_def::{ |
91 | docs::{DocDef, Docs, Documentation}, | 84 | builtin_type::BuiltinType, |
92 | src::{HasBodySource, HasSource, Source}, | 85 | path::{Path, PathKind}, |
93 | Adt, AssocItem, BuiltinType, Const, ConstData, Container, Crate, CrateDependency, DefWithBody, | 86 | type_ref::Mutability, |
94 | Enum, EnumVariant, FieldSource, FnData, Function, HasBody, MacroDef, Module, ModuleDef, | ||
95 | ModuleSource, Static, Struct, StructField, Trait, TypeAlias, Union, | ||
96 | }; | 87 | }; |
88 | pub use hir_expand::{either::Either, name::Name}; | ||