aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres.rs
Commit message (Collapse)AuthorAgeFilesLines
* SimplifyAleksey Kladov2020-06-181-7/+0
|
* Anchor file-system operations to the file, and not to the source root.Aleksey Kladov2020-06-161-2/+1
| | | | | | | | | | | | | | | | Anchoring to the SourceRoot wont' work if the path is absolute: #[path = "/tmp/foo.rs"] mod foo; Anchoring to a file will. However, we *should* anchor, instead of just producing an abs path. I can imagine a situation where, for example, rust-analyzer processes crates from different machines (or, for example, from in-memory git branch), where the same absolute path in different crates might refer to different files in the end!
* Nice string formattingAleksey Kladov2020-03-281-2/+3
|
* Simplify Arena to use a generic indexAleksey Kladov2020-03-191-2/+2
|
* Use `dyn Trait` for working with databseAleksey Kladov2020-03-161-12/+13
| | | | | | | It improves compile time in `--release` mode quite a bit, it doesn't really slow things down and, conceptually, it seems closer to what we want the physical architecture to look like (we don't want to monomorphise EVERYTHING in a single leaf crate).
* Use Display instead of a custom methodKirill Bulatov2020-03-161-1/+1
|
* Fix crate display name dashesKirill Bulatov2020-03-161-2/+7
|
* Print crate name in profilAleksey Kladov2020-03-091-1/+2
|
* Use `Index` for CrateGraphAleksey Kladov2020-03-091-1/+1
|
* Less abstract CrateData apiKirill Bulatov2020-03-091-2/+1
|
* Normalize waiting queries namesAleksey Kladov2020-03-061-7/+2
|
* Less confusing profile namesAleksey Kladov2020-03-061-1/+1
|
* Run cargo +nightly fix --clippy -Z unstable-optionsKirill Bulatov2020-02-181-1/+1
|
* Publicize debug printing of CrateDefMapAleksey Kladov2020-01-281-0/+40
|
* Remove dead codeAleksey Kladov2020-01-161-34/+2
|
* Don't parse child modules when doing diagnosticsAleksey Kladov2020-01-151-0/+7
|
* Add `_query` suffix to `compute_crate_def_map` for consistencyMichal Terepeta2020-01-031-1/+1
| | | | Signed-off-by: Michal Terepeta <[email protected]>
* Split `crate_def_map` into two methodsMichal Terepeta2020-01-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change: - introduces `compute_crate_def_map` query and renames `CrateDefMap::crate_def_map_query` for consistency, - annotates `crate_def_map` as `salsa::transparent` and adds a top-level `crate_def_map` wrapper function around that starts the profiler and immediately calls into `compute_crate_def_map` query. This allows us to better understand where we spent the time, in particular, how much is spent in the recomputaiton and how much in salsa. Example output (where we don't actually re-compute anything, but the query still takes a non-trivial amount of time): ``` 211ms - handle_inlay_hints 150ms - get_inlay_hints 150ms - SourceAnalyzer::new 65ms - def_with_body_from_child_node 65ms - analyze_container 65ms - analyze_container 65ms - Module::from_definition 65ms - Module::from_file 65ms - crate_def_map 1ms - parse_macro_query (6 calls) 0ms - raw_items_query (1 calls) 64ms - ??? ``` Signed-off-by: Michal Terepeta <[email protected]>
* Move impls to ItemScopeAleksey Kladov2019-12-201-3/+1
|
* Rename ModuleScope -> ItemScopeAleksey Kladov2019-12-201-2/+2
|
* Move ModuleScope to a new moduleAleksey Kladov2019-12-201-105/+3
|
* Remove code that never was alive?Aleksey Kladov2019-12-201-9/+2
|
* Use different types for path with and without genericsAleksey Kladov2019-12-141-2/+2
|
* Publicize `file_id` to make `test_db` compileice10002019-12-051-1/+1
|
* Use placeholder instead of `Option`ice10002019-12-051-13/+9
|
* One pub function less is good!ice10002019-12-051-5/+0
|
* Reduce visibility, use struct instead of tuplesice10002019-12-051-20/+23
|
* No block at the momentice10002019-12-041-6/+1
|
* Remove almost unused `ModuleSource::new`ice10002019-12-041-19/+1
|
* Confluent `ModuleSource` usageice10002019-12-041-13/+5
|
* Add `ModuleSource::Block`ice10002019-12-041-2/+66
|
* Fix test compilationice10002019-12-041-1/+1
|
* Three-state enum for module originice10002019-12-041-16/+75
|
* Replace `ra_hir_expand::either` with crateice10002019-12-031-4/+4
|
* Fix commentEdwin Cheng2019-12-011-2/+1
|
* Add BuiltinShadowModeEdwin Cheng2019-11-301-3/+27
|
* Use InFile for AstIdAleksey Kladov2019-11-281-3/+3
|
* Rename Source -> InFileAleksey Kladov2019-11-281-7/+7
|
* SimplifyAleksey Kladov2019-11-241-1/+1
|
* Cleanup nameresAleksey Kladov2019-11-241-26/+6
|
* CleanupAleksey Kladov2019-11-241-1/+1
|
* Push poison_macros downAleksey Kladov2019-11-241-14/+1
|
* Reduce visbilityAleksey Kladov2019-11-241-10/+10
|
* Privatise nameresAleksey Kladov2019-11-231-3/+3
|
* Rename CrateModuleIdAleksey Kladov2019-11-231-16/+16
|
* Move ImportIdAleksey Kladov2019-11-231-5/+3
|
* Get rid of DefDatabase2Aleksey Kladov2019-11-231-8/+8
|
* Move attrs query to hir_defAleksey Kladov2019-11-231-1/+30
|
* Move traits to hir_defAleksey Kladov2019-11-201-0/+8
|
* Remove wrong cloneAleksey Kladov2019-11-151-2/+2
|