rust/crates/hir/src
Aleksey Kladov af2366acdf Goto definition works for S { a: } case
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.
2021-03-15 15:12:39 +03:00
..
semantics Create all ModuleIds through a DefMap method 2021-01-25 15:21:33 +01:00
attrs.rs Fix broken link in intra-doc 2021-01-22 20:06:45 +09:00
db.rs Add name resolution query for block expressions 2021-01-21 15:22:17 +01:00
diagnostics.rs For unresolved macros, hightlight only the last segment 2021-02-28 14:29:10 +03:00
from_id.rs Remove useless code_model indirection 2021-03-08 22:08:30 +03:00
has_source.rs Obtain ModuleId's DefMap through a method 2021-01-22 16:33:58 +01:00
lib.rs some clippy::performance fixes 2021-03-15 10:19:59 +01:00
semantics.rs Less lifetines: derive SemanticsScope in place 2021-03-08 23:59:20 +02:00
source_analyzer.rs Goto definition works for S { a: } case 2021-03-15 15:12:39 +03:00