aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/goto_definition.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove Option<...> from result of Crate::root_modulePaul Daniel Faria2020-08-091-2/+3
| | | | | There doesn't seem to be any need for it, and removing it simplies several paths of code that depend on it.
* Add support for extern cratePaul Daniel Faria2020-08-081-8/+29
| | | | | This adds syntax highlighting, hover and goto def functionality for extern crate
* Correctly resolve assoc. types in path bindingsJonas Schievink2020-07-171-0/+80
|
* Unclutter NavigationTarget APIAleksey Kladov2020-07-171-1/+1
|
* Fix classify_name_ref on multi-path macro callsJonas Schievink2020-07-141-0/+18
|
* Fix goto definition for type alias type parametersAleksey Kladov2020-07-111-0/+10
| | | | closes https://github.com/rust-analyzer/rust-analyzer/issues/5042
* Goto type definition works for selfAleksey Kladov2020-07-101-4/+6
|
* Rewrite goto definition testsAleksey Kladov2020-06-301-611/+452
|
* Add example expect test for goto definitionAleksey Kladov2020-06-271-8/+33
|
* More principled indentation trimming in fixturesAleksey Kladov2020-06-231-73/+73
|
* Created goto Self enum variant testBGluth2020-06-211-0/+80
|
* Use explicit match for extracting def from `classify_name`unexge2020-06-081-2/+5
|
* Add `FieldShorthand` variant to `NameClass`unexge2020-06-081-1/+1
|
* Add goto def for enum variant fieldunexge2020-06-061-0/+19
|
* Don't require module docs for Features and AssistsAleksey Kladov2020-05-311-2/+0
|
* Specify actionsAleksey Kladov2020-05-311-1/+1
|
* Generate features docs from sourceAleksey Kladov2020-05-311-0/+9
|
* Remove cross-crate marksAleksey Kladov2020-05-201-9/+1
| | | | | They create quite a bit of friction. Really, we should just move the tests to the same crate, rather than paper over existing split.
* 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
| |