aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/lib.rs')
-rw-r--r--crates/ra_hir/src/lib.rs40
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
29mod either;
30pub mod debug; 29pub mod debug;
31 30
32pub mod db; 31pub mod db;
33#[macro_use] 32#[macro_use]
34pub mod mock; 33pub mod mock;
35mod path;
36pub mod source_binder; 34pub mod source_binder;
37 35
38mod source_id;
39mod ids; 36mod ids;
40mod name;
41mod nameres; 37mod nameres;
42mod adt; 38mod adt;
43mod traits; 39mod traits;
44mod type_alias; 40mod type_alias;
45mod type_ref;
46mod ty; 41mod ty;
47mod attr;
48mod impl_block; 42mod impl_block;
49mod expr; 43mod expr;
50mod lang_item; 44mod lang_item;
@@ -60,37 +54,35 @@ pub mod from_source;
60#[cfg(test)] 54#[cfg(test)]
61mod marks; 55mod marks;
62 56
63use crate::{ 57use hir_expand::AstId;
64 ids::MacroFileKind, 58
65 name::AsName, 59use crate::{ids::MacroFileKind, resolve::Resolver};
66 resolve::Resolver,
67 source_id::{AstId, FileAstId},
68};
69 60
70pub use self::{ 61pub 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
90pub use self::code_model::{ 83pub 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};
88pub use hir_expand::{either::Either, name::Name};