aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/goto_definition.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename ast::ImplBlock -> ast::ImplDefAleksey Kladov2020-02-291-6/+6
|
* Classify name takes const patterns into accountAleksey Kladov2020-02-281-10/+3
|
* Refactor primary IDE APIAleksey Kladov2020-02-261-20/+19
| | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
* SimplifyAleksey Kladov2020-02-221-135/+14
|
* Merge NameDefinition and NameKindAleksey Kladov2020-02-191-9/+9
|
* RenameAleksey Kladov2020-02-071-2/+2
|
* Remove irrelevant distinctionAleksey Kladov2020-02-071-1/+0
|
* cleanup importsAleksey Kladov2020-02-061-2/+1
|
* Move symbol_indexAleksey Kladov2020-02-061-1/+2
|
* Move module to SourceBinderAleksey Kladov2020-01-161-19/+19
|
* Only new-style classificationAleksey Kladov2020-01-151-2/+3
|
* Fix parser for macro call in pattern positionEdwin Cheng2019-12-201-0/+36
|
* Fix resolve for field init shorthandAleksey Kladov2019-12-201-20/+37
|
* Add local functions to bodiesAleksey Kladov2019-12-201-0/+17
|
* Don't bother with focus range for navigation to localsAleksey Kladov2019-12-181-0/+41
|
* Refactor goto tests to always specify textsAleksey Kladov2019-12-181-50/+74
|
* Add blank lines for readabilityAleksey Kladov2019-12-181-0/+4
|
* Merge #2562bors[bot]2019-12-171-8/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
| * Fix original_source find orderEdwin Cheng2019-12-141-8/+26
| |
* | for goto and hover pick the token based on a prioritysucccubbus2019-12-131-3/+15
| |
* | add tests for goto on tuple fieldssucccubbus2019-12-131-0/+16
| |
* | fix goto definition when inbetween tokenssucccubbus2019-12-131-2/+14
|/ | | | | | | | fixes both goto_definition and goto_type_definition. before, when running goto between some non-trivia token and an identifier, goto would be attempted for the non-trivia token. but this does not make sense for e.g. L_PAREN or COLONCOLON only for IDENTs. now only IDENTs will be searched for in goto actions.
* Report correct original range in goto_definitionAleksey Kladov2019-12-091-9/+7
|
* Fix range in goto_through_format testFlorian Diebold2019-12-081-1/+1
|
* Fix expansion of format_argsFlorian Diebold2019-12-081-1/+0
|
* Rename GenericParam -> TypeParamAleksey Kladov2019-12-071-1/+1
| | | | We don't have LifetimeParam yet, but they are planned!
* Gotodef for TypeParametersAleksey Kladov2019-12-071-7/+18
|
* Make the goto_through_format test actually fail :(Florian Diebold2019-12-061-0/+3
|
* Try to make go to definition work in format!Florian Diebold2019-12-061-0/+27
| | | | | | | 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.
* Rename Source -> InFileAleksey Kladov2019-11-281-4/+4
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-0/+696