aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/goto_definition.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge #4269 #4293bors[bot]2020-05-041-0/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4269: add support of use alias semantic in definition r=matklad a=bnjjj close #4202 4293: no doctests for flycheck r=matklad a=matklad bors r+ 🤖 Co-authored-by: Benjamin Coenen <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| * add support of use alias semantic in definition #4202Benjamin Coenen2020-05-021-1/+16
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
| * wipBenjamin Coenen2020-05-011-0/+18
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | Fix focus range for TypeParamAleksey Kladov2020-05-041-5/+5
|/ | | | closes #4274
* Convert tests to text-sizeAleksey Kladov2020-04-251-45/+45
|
* Fix goto definition for record patternsAleksey Kladov2020-04-181-6/+22
|
* Always expand macros during analysisAleksey Kladov2020-03-251-2/+22
|
* Check that no file contains trailing wsAleksey Kladov2020-03-171-4/+4
| | | | rustfmt allows trailing spaces in string literals unfortunately.
* Support local macro_rulesEdwin Cheng2020-03-141-0/+15
|
* Support cross-crate marksAleksey Kladov2020-03-041-1/+7
|
* Fix importsAleksey Kladov2020-03-031-3/+5
|
* Move reference classification to ra_ide_dbAleksey Kladov2020-03-031-6/+0
| | | | Lost some marks along the way :-(
* More principled approach for gotodef for field shorhandAleksey Kladov2020-03-021-2/+4
| | | | | Callers can now decide for themselves if they should prefer field or local definition. By default, it's the local.
* 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