aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/goto_definition.rs
Commit message (Collapse)AuthorAgeFilesLines
* Show item info when hovering intra doc linksLukas Wirth2021-03-231-58/+8
|
* Add test for goto def on proc macro invocationJonas Schievink2021-03-181-0/+17
|
* Check whether cursor is on and not between intra doc links in goto_definitionLukas Wirth2021-03-171-8/+14
|
* Better handling of block doc commentsLukas Wirth2021-03-171-5/+3
|
* don't clone types that are copy (clippy::clone_on_copy)Matthias Krüger2021-03-171-1/+1
|
* Upgrade rowanAleksey Kladov2021-03-161-2/+2
| | | | Notably, new rowan comes with support for mutable syntax trees.
* Goto definition works for `S { a: }` caseAleksey Kladov2021-03-151-0/+11
| | | | | | | | | | | | | What happens here is that we lower `: ` to a missing expression, and then correctly record that the corresponding field expression resolves to a specific field. Where we fail is in the mapping of syntax to this missing expression. Doing it via `ast_field.expr()` fails, as that expression is `None`. Instead, we go in the opposite direcition and ask each lowered field about its source. This works, but has wrong complexity `O(N)` and, really, the implementation is just too complex. We need some better management of data here.
* Fix a few clippy::perf warningskjeremy2021-02-161-1/+1
|
* More precise navigation to parentAleksey Kladov2021-02-091-1/+0
|
* Cleanup testsAleksey Kladov2021-02-091-11/+1
|
* Cleanup testsAleksey Kladov2021-01-221-12/+12
|
* Remove index based fallback for goto defAleksey Kladov2021-01-221-48/+18
| | | | | We are so precise that the fallback creates more confusion, when you can goto def on an unresolved reference.
* Wrap remaining self/super/crate in Name{Ref}Lukas Wirth2021-01-151-5/+0
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-151-29/+6
|
* Goto for inner doc links works for module inner doc commentsAleksey Kladov2021-01-111-26/+31
|
* Use hir::GenericParam in ide_db::Definition instead of relisting all 3Lukas Wirth2021-01-101-3/+1
|
* Support intra_doc linksDaiki Ihara2021-01-081-4/+86
|
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-071-72/+72
|
* Merge #7030bors[bot]2020-12-241-0/+15
|\ | | | | | | | | | | | | | | | | | | 7030: Support labels in reference search r=matklad a=Veykril Implements general navigation for labels, goto def, rename and gives labels their own semantic highlighting class. Fixes #6966 Co-authored-by: Lukas Wirth <[email protected]>
| * Support labels in reference searchLukas Wirth2020-12-241-0/+15
| |
* | Store invocation site for eager macrosJonas Schievink2020-12-221-0/+25
|/
* Merge #6921bors[bot]2020-12-201-0/+28
|\ | | | | | | | | | | | | | | 6921: Higher-ranked trait bounds for where clauses r=flodiebold a=Veykril There is a slight problem with this which is also noted in a FIXME now but `LifetimeParameters` of these ForLifetime where clauses allocate the lifetimes in the corresponding arena as if they were lifetimes of the item itself and not just the clause they belong to. I wasn't entirely sure what I could do about this but given nothing really uses lifetimes like that currently I figured it might be fine? Open to suggestions for that problem. Co-authored-by: Lukas Wirth <[email protected]>
| * Higher-ranked trait bounds for where clausesLukas Wirth2020-12-171-0/+28
| |
* | NavTarget doesn't assume that it points to a symbolAleksey Kladov2020-12-181-1/+1
| |
* | Don't expose SyntaxKind from IDE APIAleksey Kladov2020-12-181-2/+2
|/ | | | | | SyntaxKind is somewhat of an internal type, but IDE is using it to basically specify an icon. Let's have a dedicated entity for this instead.
* Lifetime reference searchLukas Wirth2020-12-161-8/+49
|
* Support 'go to definition' for selfLukas Wirth2020-11-291-17/+39
|
* Support goto definition for ADT-SelfParamsLukas Wirth2020-11-281-6/+36
|
* Re-export base_db from ide_dbIgor Aleksanov2020-10-241-1/+1
|
* Clarify the names one more timeAleksey Kladov2020-10-151-2/+2
|
* More idiomatic classification APIAleksey Kladov2020-10-151-3/+3
|
* More clarificationsAleksey Kladov2020-10-151-1/+1
|
* Clarify NameClass names a bitAleksey Kladov2020-10-151-1/+1
|
* rename mock_analysis -> fixtureAleksey Kladov2020-10-021-2/+2
|
* Get rid of MockAnalysisAleksey Kladov2020-10-021-13/+11
|
* Rename ra_ide -> ideAleksey Kladov2020-08-131-0/+989