Home
last modified time | relevance | path

Searched full:base_db (Results 1 – 25 of 179) sorted by relevance

12345678

/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-db/src/
Dlib.rs47 use base_db::{
59 /// `base_db` is normally also needed in places where `ide_db` is used, so this re-export is for co…
60 pub use base_db;
67 base_db::SourceDatabaseExtStorage,
68 base_db::SourceDatabaseStorage,
151 let lru_capacity = lru_capacity.unwrap_or(base_db::DEFAULT_PARSE_LRU_CAP); in update_parse_query_lru_capacity()
152 base_db::ParseQuery.in_db_mut(self).set_lru_capacity(lru_capacity); in update_parse_query_lru_capacity()
161 base_db::ParseQuery.in_db_mut(self).set_lru_capacity( in update_lru_capacities()
165 .unwrap_or(base_db::DEFAULT_PARSE_LRU_CAP), in update_lru_capacities()
171 .unwrap_or(4 * base_db::DEFAULT_PARSE_LRU_CAP), in update_lru_capacities()
[all …]
Dapply_change.rs3 use base_db::{
88 base_db::ParseQuery in per_query_memory_usage()
89 base_db::CrateGraphQuery in per_query_memory_usage()
90 base_db::ProcMacrosQuery in per_query_memory_usage()
93 base_db::FileTextQuery in per_query_memory_usage()
94 base_db::FileSourceRootQuery in per_query_memory_usage()
95 base_db::SourceRootQuery in per_query_memory_usage()
96 base_db::SourceRootCratesQuery in per_query_memory_usage()
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/nameres/
Dproc_macro.rs22 pub(super) fn to_basedb_kind(&self) -> base_db::ProcMacroKind { in to_basedb_kind()
24 ProcMacroKind::CustomDerive { .. } => base_db::ProcMacroKind::CustomDerive, in to_basedb_kind()
25 ProcMacroKind::FnLike => base_db::ProcMacroKind::FuncLike, in to_basedb_kind()
26 ProcMacroKind::Attr => base_db::ProcMacroKind::Attr, in to_basedb_kind()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/
Dfetch_crates.rs2 base_db::{CrateOrigin, FileId, SourceDatabase},
34 fn crate_info(data: &ide_db::base_db::CrateData) -> CrateInfo { in crate_info()
40 fn crate_name(data: &ide_db::base_db::CrateData) -> Option<String> { in crate_name()
Dinterpret_function.rs2 use ide_db::base_db::SourceDatabaseExt;
4 use ide_db::{base_db::FilePosition, LineIndexDatabase};
Dssr.rs6 use ide_db::{base_db::FileRange, label::Label, source_change::SourceChange, RootDatabase};
62 base_db::{fixture::WithFixture, salsa::Durability, FileRange},
73 local_roots.insert(ide_db::base_db::fixture::WORKSPACE); in get_assists()
Dparent_module.rs3 base_db::{CrateId, FileId, FileLoader, FilePosition},
69 use ide_db::base_db::FileRange;
Dview_item_tree.rs2 use ide_db::base_db::FileId;
Dview_mir.rs2 use ide_db::base_db::FilePosition;
Dview_hir.rs2 use ide_db::base_db::FilePosition;
Dgoto_type_definition.rs1 use ide_db::{base_db::Upcast, defs::Definition, helpers::pick_best_token, RootDatabase};
98 use ide_db::base_db::FileRange;
Dshuffle_crate_graph.rs2 base_db::{salsa::Durability, CrateGraph, ProcMacros, SourceDatabase},
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-ty/src/
Dtest_db.rs5 use base_db::{
18 base_db::SourceDatabaseExtStorage,
19 base_db::SourceDatabaseStorage,
/third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/src/cli/
Dssr.rs14 use ide_db::base_db::SourceDatabaseExt; in run()
50 use ide_db::base_db::SourceDatabaseExt; in run()
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/
Dtest_db.rs5 use base_db::{
23 base_db::SourceDatabaseExtStorage,
24 base_db::SourceDatabaseStorage,
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/macro_expansion_tests/
Dmod.rs20 use base_db::{fixture::WithFixture, ProcMacro, SourceDatabase};
57 kind: base_db::ProcMacroKind::Attr, in check()
342 impl base_db::ProcMacroExpander for IdentityWhenValidProcMacroExpander {
347 _: &base_db::Env, in expand()
348 ) -> Result<Subtree, base_db::ProcMacroExpansionError> { in expand()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-ssr/src/
Dlib.rs89 use ide_db::base_db::{FileId, FilePosition, FileRange};
141 use ide_db::base_db::SourceDatabaseExt; in at_first_file()
172 use ide_db::base_db::SourceDatabaseExt; in edits()
224 use ide_db::base_db::SourceDatabaseExt; in debug_where_text_equal()
Dfrom_comment.rs5 base_db::{FilePosition, FileRange, SourceDatabase},
/third_party/rust/rust/src/tools/rust-analyzer/docs/dev/
Darchitecture.md137 ### `crates/base_db`
141 The `base_db` crate provides basic infrastructure for interacting with salsa.
143 Reading the docs of the `base_db::input` module should be useful: everything else is strictly deriv…
146 In particular, `base_db` knows nothing about cargo.
147 For example, `cfg` flags are a part of `base_db`, but `feature`s are not.
151 **Architecture Invariant:** `base_db` doesn't know about file system and file paths.
494 For this reason, the types in `ide`, `base_db` and below are not serializable by design.
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-ty/src/layout/
Dtarget.rs3 use base_db::CrateId;
/third_party/rust/rust/src/tools/rust-analyzer/crates/project-model/src/
Dlib.rs4 //! Pure model is represented by the [`base_db::CrateGraph`] from another crate.
16 //! * Lowering of concrete model to a [`base_db::CrateGraph`]
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-ty/src/tests/
Dincremental.rs1 use base_db::{fixture::WithFixture, SourceDatabaseExt};
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/nameres/tests/
Dincremental.rs1 use base_db::SourceDatabaseExt;
201 base_db::ParseQuery.in_db(&db).purge(); in item_tree_prevents_reparsing()
/third_party/rust/rust/src/tools/rust-analyzer/.github/workflows/
Dautopublish.yaml38 cargo workspaces rename --from base-db base_db
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-expand/src/
Dproc_macro.rs3 use base_db::{CrateId, ProcMacroExpansionError, ProcMacroId, ProcMacroKind};

12345678