aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/goto_type_definition.rs
Commit message (Collapse)AuthorAgeFilesLines
* Refactor primary IDE APIAleksey Kladov2020-02-261-18/+18
| | | | | | | | | | 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-121-15/+7
|
* cleanup importsAleksey Kladov2020-02-061-2/+2
|
* for goto and hover pick the token based on a prioritysucccubbus2019-12-131-2/+13
|
* add tests for goto on tuple fieldssucccubbus2019-12-131-1/+17
|
* 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.
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-0/+105