aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres
Commit message (Collapse)AuthorAgeFilesLines
* Drop dead codeAleksey Kladov2019-12-171-11/+0
|
* Refactor PathKindAleksey Kladov2019-12-172-8/+20
|
* Use different types for path with and without genericsAleksey Kladov2019-12-143-24/+26
|
* Rename N! to name!Florian Diebold2019-12-131-2/+2
|
* Add macros for known names and pathsFlorian Diebold2019-12-131-2/+2
|
* Move enum&union to new locAleksey Kladov2019-12-121-8/+11
|
* Move structs to new locAleksey Kladov2019-12-121-3/+4
|
* Move traits to the new locAleksey Kladov2019-12-121-2/+7
|
* Switch to the new location for implsAleksey Kladov2019-12-121-4/+6
|
* Delay legacy macro expansionEdwin Cheng2019-12-081-149/+57
|
* Merge #2466bors[bot]2019-12-083-44/+165
|\ | | | | | | | | | | | | | | | | | | | | 2466: Handle partial resolve cases r=matklad a=edwin0cheng Another try to fix #2443 : We resolve all imports every time in `DefCollector::collect` loop even it is resolved previously. This is because other unresolved imports and macros will bring in another `PerNs`, so we can only assume that it has been partially resolved. Co-authored-by: Edwin Cheng <[email protected]>
| * Refactor resolve_imports logicEdwin Cheng2019-12-072-40/+129
| |
| * Push glob_imports only if non-existsEdwin Cheng2019-12-071-4/+4
| |
| * Add testsEdwin Cheng2019-12-061-0/+32
| |
* | Remove MacroFileKindEdwin Cheng2019-12-081-2/+2
|/
* Add expansion infrastructure for derive macrosFlorian Diebold2019-12-053-7/+105
|
* Use placeholder instead of `Option`ice10002019-12-051-1/+1
|
* Three-state enum for module originice10002019-12-041-4/+3
|
* Replace `ra_hir_expand::either` with crateice10002019-12-031-3/+3
|
* Remove some empty linesEdwin Cheng2019-12-011-2/+0
|
* Use index instead of peekableEdwin Cheng2019-12-011-35/+19
|
* Add BuiltinShadowModeEdwin Cheng2019-11-302-15/+60
|
* Use InFile for AstIdAleksey Kladov2019-11-281-2/+2
|
* Rename Source -> InFileAleksey Kladov2019-11-281-3/+3
|
* Use Name::missing consistentlyAleksey Kladov2019-11-271-1/+1
|
* ReformatAleksey Kladov2019-11-271-2/+1
|
* Rename module_id -> local_idAleksey Kladov2019-11-272-15/+15
|
* Hide MacroCallLocEdwin Cheng2019-11-261-4/+3
|
* Fix hir for ast::UnionDefAleksey Kladov2019-11-253-13/+19
|
* SimplifyAleksey Kladov2019-11-241-1/+1
|
* Cleanup nameresAleksey Kladov2019-11-241-1/+4
|
* Use Trace in raw_itemsAleksey Kladov2019-11-241-10/+10
|
* Some docsAleksey Kladov2019-11-241-1/+6
|
* CleanupAleksey Kladov2019-11-241-1/+1
|
* Nicer API for attrsAleksey Kladov2019-11-241-5/+9
|
* Slightly reduce code duplicationAleksey Kladov2019-11-241-5/+2
|
* SimplifyAleksey Kladov2019-11-241-8/+4
|
* Switch to StaticLoc for staticsAleksey Kladov2019-11-241-2/+5
|
* Push poison_macros downAleksey Kladov2019-11-241-11/+27
|
* Move ModuleSource back to hirAleksey Kladov2019-11-231-14/+4
|
* Privatise nameresAleksey Kladov2019-11-233-76/+4
|
* Rename CrateModuleIdAleksey Kladov2019-11-234-26/+26
|
* Move ImportIdAleksey Kladov2019-11-232-19/+15
|
* Get rid of DefDatabase2Aleksey Kladov2019-11-235-16/+16
|
* Encapsulate AttrsAleksey Kladov2019-11-222-23/+15
|
* Move constants to new IDAleksey Kladov2019-11-201-2/+10
| | | | This allows us to get rid of trait item index
* Don't duplicate ContainerId typeAleksey Kladov2019-11-201-4/+4
|
* Switch type aliases to new sourcesAleksey Kladov2019-11-201-4/+10
|
* Next gen IDs for functionsAleksey Kladov2019-11-201-4/+9
| | | | | | | | | | | | | | | | | The current system with AstIds has two primaraly drawbacks: * It is possible to manufacture IDs out of thin air. For example, it's possible to create IDs for items which are not considered in CrateDefMap due to cfg. Or it is possible to mixup structs and unions, because they share ID space. * Getting the ID of a parent requires a secondary index. Instead, the plan is to pursue the more traditional approach, where each items stores the id of the parent declaration. This makes `FromSource` more awkward, but also more correct: now, to get from an AST to HIR, we first do this recursively for the parent item, and the just search the children of the parent for the matching def
* Rename Source::ast -> Source::valueAleksey Kladov2019-11-201-1/+1
|