rust-analyzer/crates/ra_ide_api
Florian Diebold 85633656df Fix hover on the beginning of a nested expression
E.g. in
```
let foo = 1u32;
if true {
   <|>foo;
}
```
the hover shows `()`, the type of the whole if expression, instead of the more
sensible `u32`. The reason for this was that the search for an expression was
slightly left-biased: When on the edge between two tokens, it first looked at
all ancestors of the left token and then of the right token. Instead merge the
ancestors in ascending order, so that we get the smaller of the two possible
expressions.
2019-04-28 16:03:49 +02:00
..
src Fix hover on the beginning of a nested expression 2019-04-28 16:03:49 +02:00
Cargo.toml add a couple of profiling points 2019-04-15 01:10:07 +03:00