aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Disable doctestsAleksey Kladov2019-11-171-1/+1
|
* Store impls in CrateDefMapAleksey Kladov2019-11-152-3/+37
|
* Move scope tests to hir_defAleksey Kladov2019-11-151-1/+2
|
* Add convenience method for testingAleksey Kladov2019-11-153-5/+5
|
* Merge #2205bors[bot]2019-11-112-3/+29
|\ | | | | | | | | | | | | | | | | | | | | | | | | 2205: Implement bulitin line! macro r=matklad a=edwin0cheng This PR implements bulitin macro `line!` and add basic infra-structure for other bulitin macros: 1. Extend `MacroDefId` to support builtin macros 2. Add a `quote!` macro for simple quasi quoting. Note that for support others builtin macros, eager macro expansion have to be supported first, this PR not try to handle it. :) Co-authored-by: Edwin Cheng <[email protected]>
| * Add MacroDefKindEdwin Cheng2019-11-111-8/+7
| |
| * Add basic bultin macro infrastructureEdwin Cheng2019-11-112-4/+31
| |
* | Overwrite the prelude with one defined in a later dependencyMatthias Einwag2019-11-101-9/+6
| | | | | | | | | | | | | | This removes the special casing for the "core" prelude. Whenever a later dependency also exports a prelude, it will replace the formerly imported prelude. The utilized prelude then depends purely on import order.
* | Add tests for resolving types in core and std preludesMatthias Einwag2019-11-101-0/+31
| |
* | Resolve core typesMatthias Einwag2019-11-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for completion and goto definition of types defined within the "core" crate. The core crate is added as a dependency to each crate in the project. The core crate exported it's own prelude. This caused now all crates to inherit the core crates prelude instead of the std crates. In order to avoid the problem the prelude resolution has been changed to overwrite an already resolved prelude if this was set to a crate named core - in order to pick a better prelude like std. Fixes #2199
* | Unfork struct and union idsAleksey Kladov2019-11-091-4/+7
|/
* Reduce visibilityAleksey Kladov2019-11-081-9/+9
|
* Extract path resolution submoduleAleksey Kladov2019-11-082-2/+263
|
* SimplifyAleksey Kladov2019-11-081-1/+5
| | | | | There's only one call-site for the function, so it seems fine to inline