aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove imports from hirAleksey Kladov2019-12-211-2/+2
|
* Revert "Merge #2629"Aleksey Kladov2019-12-211-2/+2
| | | | | This reverts commit cdc9d682b066b110e0a44e5f8f1c574b38c16ba9, reversing changes made to 90ef070db3dce0a7acb9cd11d0b0d72de13c9d79.
* Remove hir for importsAleksey Kladov2019-12-211-2/+2
|
* Drop dead codeAleksey Kladov2019-12-191-1/+1
|
* Merge #2562bors[bot]2019-12-171-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2562: Fix NavigationTarget ranges r=matklad a=edwin0cheng Fix the issue described in https://github.com/rust-analyzer/rust-analyzer/pull/2544#issuecomment-565572553 This PR change the order for finding `full_range` of `focus_range` in following orders: 1. map both ranges to macro_call 2. map focus range to a token inside macro call, and full range to the whole of macro call 3. map both ranges to the whole of macro call And fix the corresponding tests and make these tests easily to follow. Co-authored-by: Edwin Cheng <[email protected]>
| * Re-export Origin to replace ExpansionOriginEdwin Cheng2019-12-141-2/+1
| |
| * Fix original_source find orderEdwin Cheng2019-12-141-1/+2
| |
* | Use different types for path with and without genericsAleksey Kladov2019-12-141-1/+1
|/
* Remove more dead codeAleksey Kladov2019-12-081-2/+0
|
* Cleanup module structureAleksey Kladov2019-12-081-5/+7
|
* Remove ty from code_modelAleksey Kladov2019-12-081-6/+1
|
* Rename GenericParam -> TypeParamAleksey Kladov2019-12-071-3/+3
| | | | We don't have LifetimeParam yet, but they are planned!
* Add `ModuleSource::Block`ice10002019-12-041-2/+3
|
* Replace `ra_hir_expand::either` with crateice10002019-12-031-1/+1
|
* Rename Source -> InFileAleksey Kladov2019-11-281-1/+1
|
* Move TyAleksey Kladov2019-11-271-8/+1
|
* Introduce hir::TypeAleksey Kladov2019-11-261-1/+1
| | | | It should provide a convenient API over more low-level Ty
* Remove impl_block moduleAleksey Kladov2019-11-241-1/+0
|
* SimplifyAleksey Kladov2019-11-241-5/+4
|
* Remove ids moduleAleksey Kladov2019-11-241-1/+0
|
* Cleanup importsAleksey Kladov2019-11-241-2/+3
|
* Hide ImportIdAleksey Kladov2019-11-231-3/+2
|
* Cleanup importsAleksey Kladov2019-11-231-1/+1
|
* Move docs to hir_defAleksey Kladov2019-11-231-2/+2
|
* Move lang_items to hir_defAleksey Kladov2019-11-231-1/+0
|
* Move attrs query to hir_defAleksey Kladov2019-11-231-5/+4
|
* Move const&static date to hir_defAleksey Kladov2019-11-221-4/+4
|
* Move FunctionData to hir_defAleksey Kladov2019-11-221-3/+3
|
*-. Merge #2348 #2352bors[bot]2019-11-221-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2348: Add support for stringify! builtin macro r=matklad a=piotr-szpetkowski Refs #2212 First time ever contributing here, hopefully it's ok. 2352: Move TypeAlias to hir_def r=matklad a=matklad Co-authored-by: Piotr Szpetkowski <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| | * Move TypeAlias to hir_defAleksey Kladov2019-11-221-1/+0
| |/
* / Rename Atts traitAleksey Kladov2019-11-221-1/+1
|/
* reformatAleksey Kladov2019-11-211-4/+3
|
* Remove old hir::generics moduleAleksey Kladov2019-11-211-2/+1
|
* Move resolver to hir_defAleksey Kladov2019-11-211-3/+0
|
* Move ScopeDefAleksey Kladov2019-11-211-3/+2
|
* Remove hir/adt.rsAleksey Kladov2019-11-201-5/+3
|
* Move traits to hir_defAleksey Kladov2019-11-201-1/+0
|
* Remove old impls infrastructureAleksey Kladov2019-11-151-4/+2
|
* Reduce duplication between uncertain floats & intsAleksey Kladov2019-11-131-3/+1
|
* Introduce hir::GenericParamAleksey Kladov2019-11-111-2/+2
| | | | Unlike existing hir::GenericParams, this is a global ID.
* Don't reexport generics from HIRAleksey Kladov2019-11-111-2/+2
|
* Add hir::LocalAleksey Kladov2019-11-111-1/+1
|
* Make primitive tys publicAleksey Kladov2019-11-111-1/+5
|
* Merge #2179bors[bot]2019-11-061-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | 2179: Use HirDatabase to compute `is_deprecated` r=matklad a=martskins This PR fixes #2167 by introducing `attributes_query` and adding `fn attrs(&self, def: crate::AttrDef) -> Option<Arc<[Attr]>>;` to the `DefDatabase` trait. I'm a little concerned about the two spots in `attributes_query` where code is repeated, but I couldn't figure out a way to avoid that, so.. I welcome suggestions :smile: Co-authored-by: Martin Asquino <[email protected]>
| * HirDatabase stored attributesMartin Asquino2019-11-041-0/+1
| |
* | Move Namespace enum closer to usageAleksey Kladov2019-11-041-4/+1
| |
* | Rename MockDatabase -> TestDBAleksey Kladov2019-11-041-2/+2
|/ | | | Actually working rename is sooo useful!
* Remove last traces of nameres from hirAleksey Kladov2019-11-031-2/+4
|
* Move CrateDefMap to hir_defAleksey Kladov2019-11-031-0/+1
|
* Move Source to hir_expandAleksey Kladov2019-11-021-2/+2
|