aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/source_binder.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use pre-stored macro fileEdwin Cheng2019-12-231-19/+21
|
* Add macro call support for type_ofEdwin Cheng2019-12-231-2/+24
|
* Optimize and profileAleksey Kladov2019-12-211-0/+3
|
* Fix resolve for field init shorthandAleksey Kladov2019-12-201-1/+7
|
* Use different types for path with and without genericsAleksey Kladov2019-12-141-27/+29
|
* Use path macroFlorian Diebold2019-12-131-2/+2
|
* Build correct SourceAnalyzer for traitsAleksey Kladov2019-12-101-14/+4
|
* Remove one more TyAleksey Kladov2019-12-081-2/+2
|
* Remove ty from code_modelAleksey Kladov2019-12-081-12/+12
|
* Remove MacroFileKindEdwin Cheng2019-12-081-39/+2
|
* Rename GenericParam -> TypeParamAleksey Kladov2019-12-071-5/+5
| | | | We don't have LifetimeParam yet, but they are planned!
* Get the right analyzer for implsAleksey Kladov2019-12-071-1/+5
|
* Remove idx and parent generics from genericsAleksey Kladov2019-12-071-8/+2
| | | | | This makes `hir_def::GenericParams` flatter. The logic for re-numbering the params is moved to hir instead.
* Implement ancestors_with_macros in a better wayFlorian Diebold2019-12-061-12/+1
|
* Try to make go to definition work in format!Florian Diebold2019-12-061-5/+18
| | | | | | | SourceAnalyzer didn't work properly within expression macro expansions because it didn't find the enclosing function. Fix this by going up the expansion chain to find ancestors. This makes the test work, but apparently in real usage it's still not working.
* Add expansion infrastructure for derive macrosFlorian Diebold2019-12-051-2/+3
|
* Add `ModuleSource::Block`ice10002019-12-041-1/+2
|
* Replace `ra_hir_expand::either` with crateice10002019-12-031-3/+4
|
* Add BuiltinShadowModeEdwin Cheng2019-11-301-1/+1
|
* Rename Source -> InFileAleksey Kladov2019-11-281-14/+14
|
* Move TyAleksey Kladov2019-11-271-17/+5
|
* Use Id for variatsAleksey Kladov2019-11-271-2/+2
|
* More decouplingAleksey Kladov2019-11-271-3/+3
|
* Decouple moreAleksey Kladov2019-11-271-3/+3
|
* DecoupleAleksey Kladov2019-11-271-4/+4
|
* CleanupAleksey Kladov2019-11-261-2/+2
|
* Hide MacroCallLocEdwin Cheng2019-11-261-4/+2
|
* Merge #2406bors[bot]2019-11-261-5/+6
|\ | | | | | | | | | | | | | | 2406: Add hygiene information to SourceAnalyzer r=matklad a=edwin0cheng This should fix https://github.com/rust-analyzer/rust-analyzer/pull/2392#issuecomment-557964686 Co-authored-by: Edwin Cheng <[email protected]>
| * Remove dbg!Edwin Cheng2019-11-261-2/+0
| |
| * Add hygiene information to SourceAnalyzerEdwin Cheng2019-11-261-5/+8
| |
* | Introduce hir::TypeAleksey Kladov2019-11-261-21/+25
|/ | | | It should provide a convenient API over more low-level Ty
* Use GenericDefIdMoreAleksey Kladov2019-11-251-2/+2
|
* Remove Resolver from autoderefAleksey Kladov2019-11-251-2/+8
| | | | | Resolver holds onto too much context, including local scopes. Let's try to pass in only what is necessary -- the trait environment.
* SimplifyAleksey Kladov2019-11-241-5/+4
|
* Don't redo field resolution in the IDEAleksey Kladov2019-11-241-0/+5
|
* Switch to StaticLoc for staticsAleksey Kladov2019-11-241-8/+4
|
* Cleanup importsAleksey Kladov2019-11-241-6/+7
|
* Add to_macro_file_kindEdwin Cheng2019-11-211-2/+38
|
* Move resolver to hir_defAleksey Kladov2019-11-211-8/+8
|
* DecoupleAleksey Kladov2019-11-211-4/+9
|
* Split internal and user-visible ScopeDefAleksey Kladov2019-11-211-2/+17
|
* Move ScopeDefAleksey Kladov2019-11-211-3/+3
|
* DecoupleAleksey Kladov2019-11-211-4/+4
|
* DecoupleAleksey Kladov2019-11-211-6/+6
|
* Move expr resolver to resolveAleksey Kladov2019-11-211-3/+3
|
* Decouple ResolverAleksey Kladov2019-11-211-9/+12
|
* Add HasResolver traitAleksey Kladov2019-11-201-1/+1
|
* Move constants to new IDAleksey Kladov2019-11-201-1/+6
| | | | This allows us to get rid of trait item index
* Fix expand macroEdwin Cheng2019-11-201-3/+10
|
* Next gen IDs for functionsAleksey Kladov2019-11-201-1/+1
| | | | | | | | | | | | | | | | | 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