rust-analyzer/crates
bors[bot] 8a82e6c492
Merge #10284
10284: internal: definition based hover functions r=Veykril a=HKalbasi

This is part of #10181 but since it is blocked and `hover.rs` is moving quickly so will cause conflicts, I submitted this PR.

This PR extract some parts of `hover` to `find_definition` (maybe this need to be moved to some other file?) and `hover_for_definition`, with those functions I will be able to calculate definition of every token, and calculate hover (and probably other queries) for each definition only once.

Co-authored-by: hamidreza kalbasi <hamidrezakalbasi@protonmail.com>
2021-09-22 15:23:23 +00:00
..
base_db Add a mirror function-like proc-macro expander for tests 2021-09-21 14:55:54 +02:00
cfg Simplify int_in_range 2021-08-31 13:11:17 +02:00
flycheck internal: remove dead code 2021-09-15 21:22:06 +03:00
hir Simplify 2021-09-21 16:05:21 +02:00
hir_def Generate ast nodes for each ast trait 2021-09-21 15:52:11 +02:00
hir_expand Merge #10293 2021-09-19 22:33:42 +00:00
hir_ty Simplify 2021-09-19 23:34:07 +02:00
ide Merge #10284 2021-09-22 15:23:23 +00:00
ide_assists Change the style of the code 2021-09-22 06:32:23 +08:00
ide_completion Merge #10248 2021-09-15 18:23:46 +00:00
ide_db move function to defs.rs 2021-09-22 18:35:54 +03:30
ide_diagnostics Merge #10089 2021-08-30 19:35:00 +00:00
ide_ssr Simplify 2021-09-19 23:34:07 +02:00
limit internal: add API to check what are the max limits in practice 2021-07-31 18:26:43 +03:00
mbe Merge #10293 2021-09-19 22:33:42 +00:00
parser internal: more focused tests for const arguments 2021-09-19 16:35:10 +03:00
paths internal: improve compilation critical path a bit 2021-08-28 22:43:37 +03:00
proc_macro_api Simplify 2021-09-19 23:34:07 +02:00
proc_macro_srv removing seemingly unused dev deps. 2021-09-11 16:26:36 +01:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile Update dependency minor versions 2021-09-04 00:27:05 -07:00
project_model Simplify 2021-09-19 19:00:06 +02:00
rust-analyzer Rename some assists 2021-09-21 00:54:09 +02:00
sourcegen internal: prevent possible bugs when adding magical comments 2021-09-13 13:43:13 +03:00
stdx minor: improve readability 2021-09-11 18:42:38 +03:00
syntax Simplify 2021-09-21 16:15:30 +02:00
test_utils Simplify 2021-09-19 19:00:06 +02:00
text_edit Handle all rename special cases for all record pattern fields 2021-08-16 22:48:38 +02:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt internal: reduce coupling 2021-08-31 19:14:33 +03:00
vfs internal: document that ascription is preferred to a turbo fish 2021-08-11 14:16:15 +03:00
vfs-notify internal: remove dead code 2021-09-15 21:22:06 +03:00