2021-05-22 08:53:47 -05:00
|
|
|
//! Re-exports various subcrates databases so that the calling code can depend
|
|
|
|
//! only on `hir`. This breaks abstraction boundary a bit, it would be cool if
|
|
|
|
//! we didn't do that.
|
|
|
|
//!
|
|
|
|
//! But we need this for at least LRU caching at the query level.
|
2023-11-25 10:10:18 -06:00
|
|
|
pub use hir_def::db::{
|
|
|
|
AttrsQuery, BlockDefMapQuery, BlockItemTreeQueryQuery, BodyQuery, BodyWithSourceMapQuery,
|
|
|
|
ConstDataQuery, ConstVisibilityQuery, CrateDefMapQueryQuery, CrateLangItemsQuery,
|
2024-01-16 03:47:54 -06:00
|
|
|
CrateSupportsNoStdQuery, DefDatabase, DefDatabaseStorage, EnumDataQuery,
|
2024-01-15 03:24:14 -06:00
|
|
|
EnumVariantDataWithDiagnosticsQuery, ExprScopesQuery, ExternCrateDeclDataQuery,
|
2023-11-25 10:10:18 -06:00
|
|
|
FieldVisibilitiesQuery, FieldsAttrsQuery, FieldsAttrsSourceMapQuery, FileItemTreeQuery,
|
2024-01-16 03:47:54 -06:00
|
|
|
FunctionDataQuery, FunctionVisibilityQuery, GenericParamsQuery, ImplDataWithDiagnosticsQuery,
|
|
|
|
ImportMapQuery, InternAnonymousConstQuery, InternBlockQuery, InternConstQuery, InternDatabase,
|
|
|
|
InternDatabaseStorage, InternEnumQuery, InternExternBlockQuery, InternExternCrateQuery,
|
|
|
|
InternFunctionQuery, InternImplQuery, InternInTypeConstQuery, InternMacro2Query,
|
|
|
|
InternMacroRulesQuery, InternProcMacroQuery, InternStaticQuery, InternStructQuery,
|
|
|
|
InternTraitAliasQuery, InternTraitQuery, InternTypeAliasQuery, InternUnionQuery,
|
|
|
|
InternUseQuery, LangItemQuery, Macro2DataQuery, MacroRulesDataQuery, ProcMacroDataQuery,
|
|
|
|
StaticDataQuery, StructDataWithDiagnosticsQuery, TraitAliasDataQuery,
|
|
|
|
TraitDataWithDiagnosticsQuery, TypeAliasDataQuery, UnionDataWithDiagnosticsQuery,
|
2023-11-25 10:10:18 -06:00
|
|
|
};
|
2019-10-29 06:59:55 -05:00
|
|
|
pub use hir_expand::db::{
|
2023-07-10 09:23:29 -05:00
|
|
|
AstIdMapQuery, DeclMacroExpanderQuery, ExpandDatabase, ExpandDatabaseStorage,
|
2023-12-01 07:58:57 -06:00
|
|
|
ExpandProcMacroQuery, InternMacroCallQuery, InternSyntaxContextQuery, MacroArgQuery,
|
2023-12-18 05:09:54 -06:00
|
|
|
ParseMacroExpansionErrorQuery, ParseMacroExpansionQuery, ProcMacrosQuery, RealSpanMapQuery,
|
2018-11-27 18:42:26 -06:00
|
|
|
};
|
2020-07-22 11:44:40 -05:00
|
|
|
pub use hir_ty::db::*;
|