aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/nameres
Commit message (Collapse)AuthorAgeFilesLines
* Specify desirable namespace when calling resolveAleksey Kladov2019-09-131-9/+0
| | | | That way, we are able to get rid of a number of unreachable statements
* rename AdtDef -> AdtAleksey Kladov2019-09-121-3/+3
|
* make various enums "inherit" from AdtDefAleksey Kladov2019-09-121-3/+3
|
* add macros with local_inner_macros argumentJasperDeSutter2019-09-122-1/+40
|
* Merge #1796bors[bot]2019-09-111-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1796: Support completion for macros r=matklad a=uHOOCCOOHu This is based on #1795 , and fixes #1727 Also prettify hover text of macros. Some screenshorts below: Completion in item place. <img width="416" alt="Screenshot_20190910_134056" src="https://user-images.githubusercontent.com/14816024/64587159-fa72da00-d3d0-11e9-86bb-c98f169ec08d.png"> After pressing `tab`. <img width="313" alt="Screenshot_20190910_134111" src="https://user-images.githubusercontent.com/14816024/64587160-fa72da00-d3d0-11e9-9464-21e3f6957bd7.png"> Complete macros from `std`. <img width="588" alt="Screenshot_20190910_134147" src="https://user-images.githubusercontent.com/14816024/64587161-fb0b7080-d3d0-11e9-866e-5161f0d1b546.png"> Hover text. <img width="521" alt="Screenshot_20190910_134242" src="https://user-images.githubusercontent.com/14816024/64587162-fb0b7080-d3d0-11e9-8f09-ad17e3f6702a.png"> Co-authored-by: uHOOCCOOHu <[email protected]>
| * Fix typouHOOCCOOHu2019-09-111-1/+1
| |
* | cleanup expansion to item listAleksey Kladov2019-09-101-1/+3
|/
* StripuHOOCCOOHu2019-09-091-9/+3
|
* Make macro scope a real name scopeuHOOCCOOHu2019-09-094-137/+265
| | | | Fix some details about module scoping
* Fix testuHOOCCOOHu2019-09-081-3/+0
|
* Rename `textual_macro` -> `legacy_macro`uHOOCCOOHu2019-09-082-21/+18
| | | | Add comments
* Revert "Replace with immutable map to avoid heavy cloning"uHOOCCOOHu2019-09-081-3/+0
| | | | | | This reverts commit 2c494eb803c88ef5d23607c3b156fce60c2b8076. See: https://github.com/rust-analyzer/rust-analyzer/pull/1784#issuecomment-529119924
* Replace with immutable map to avoid heavy cloninguHOOCCOOHu2019-09-081-0/+3
|
* Resolve textual scoped macros inside itemuHOOCCOOHu2019-09-082-8/+24
|
* Support textual scoped macrosuHOOCCOOHu2019-09-083-34/+153
|
* cleanup hir db importsAleksey Kladov2019-09-083-6/+7
|
* don't cycle when processing macros from prelude in preludeAleksey Kladov2019-09-072-2/+33
|
* Merge #1779bors[bot]2019-09-061-1/+3
|\ | | | | | | | | | | | | | | 1779: minor r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * minorAleksey Kladov2019-09-061-1/+3
| |
* | make source_root API more abstractAleksey Kladov2019-09-061-6/+8
|/
* Merge #1771bors[bot]2019-09-052-18/+90
|\ | | | | | | | | | | | | | | | | | | | | 1771: Further tweak for macro_use on extern crate r=matklad a=uHOOCCOOHu Some more tweaks to #1743 to behave more like `rustc` 1. Hoist macros from `#[macro_use] extern crate`, so that they can be used before `extern crate`. 2. Implicit `#[macro_use]` for `prelude` if exists Co-authored-by: uHOOCCOOHu <[email protected]>
| * Hoist macros from extern crate with macro_useuHOOCCOOHu2019-09-052-14/+20
| |
| * Consider prelude to be `macro_use`uHOOCCOOHu2019-09-052-4/+70
| |
* | rename test file to match impl fileAleksey Kladov2019-09-052-1/+1
| |
* | move mod resolution to a separate fileAleksey Kladov2019-09-052-183/+189
|/
* Fix typouHOOCCOOHu2019-09-051-2/+2
|
* Let `macro_use` bypass module scopeuHOOCCOOHu2019-09-052-35/+52
|
* Fix import strategy of `macro_use` and its testuHOOCCOOHu2019-09-022-9/+22
|
* Add testuHOOCCOOHu2019-08-311-5/+50
|
* Support resolution of `#[macro_use] extern crate`uHOOCCOOHu2019-08-312-2/+28
|
* :arrow_up: instaAleksey Kladov2019-08-295-53/+53
|
* remove ast::*Kind from hirAleksey Kladov2019-08-191-12/+12
|
* Resolve out of line modules inside inline module with attribute pathAlexander Andreev2019-08-033-28/+70
| | | | | Fixed #1510 Fixed #1529
* Fixed request changes.Alexander Andreev2019-07-291-9/+19
|
* Added resolve modules inside inline moduleAlexander Andreev2019-07-292-54/+147
| | | | #1510
* migrate ra_hir to the new rowanAleksey Kladov2019-07-191-26/+26
|
* Fixed request commentsAlexander Andreev2019-07-142-66/+72
|
* Fixed commentsAlexander Andreev2019-07-131-2/+2
|
* More resolution modules with attribute pathAlexander Andreev2019-07-132-4/+521
| | | | #1211
* cargo formatMuhammad Mominul Huque2019-07-071-2/+2
|
* Constify KnownName'sMuhammad Mominul Huque2019-07-071-2/+3
|
* Moved module resolution test in mods.rsAlexander Andreev2019-07-072-191/+193
|
* Added support attribute path in resolusion module fnAlexander Andreev2019-07-062-5/+119
|
* Added extract path attribute for current moduleAlexander Andreev2019-07-062-5/+21
| | | | #1211
* Some clippy fixes for 1.36Jeremy Kolb2019-07-041-9/+5
|
* Merge #1486bors[bot]2019-07-043-23/+23
|\ | | | | | | | | | | | | | | 1486: allow rustfmt to reorder imports r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * allow rustfmt to reorder importsAleksey Kladov2019-07-043-23/+23
| | | | | | | | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* | Fixed request changesAlexander Andreev2019-07-031-2/+1
| |
* | Move resolve raw name in name.rsAlexander Andreev2019-07-032-9/+27
| | | | | | | | Added test for check module resolution with raw name
* | Added resolve submodules with raw nameAlexander Andreev2019-07-031-0/+9
|/ | | | #1211