rust-analyzer/crates/ra_ide_api/src
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
..
completion Merge #1194 2019-04-22 13:19:47 +00:00
display introduce SourceAnalyzer 2019-04-11 16:29:33 +03:00
snapshots Move structure to display/structure 2019-04-09 14:45:05 +03:00
assists.rs Rename source_edit to source_file_edit to match file_system_edit 2019-03-25 09:13:58 +02:00
call_info.rs use really correct resolver for expressions 2019-04-13 00:44:47 +03:00
change.rs add a couple of profiling points 2019-04-15 01:10:07 +03:00
completion.rs Move completion label functions to display 2019-04-09 14:45:05 +03:00
db.rs migrate to salsas interning 2019-04-09 22:51:22 +03:00
diagnostics.rs switch to new rowan 2019-04-01 12:06:24 +03:00
display.rs Fix doc comment 2019-04-09 16:08:24 +03:00
extend_selection.rs add ast::tokens 2019-04-02 10:23:29 +03:00
folding_ranges.rs More future-proof comment kind 2019-04-02 12:18:52 +03:00
goto_definition.rs Fix hover on the beginning of a nested expression 2019-04-28 16:03:49 +02:00
goto_type_definition.rs simplify match 2019-04-24 14:45:02 -04:00
hover.rs Fix hover on the beginning of a nested expression 2019-04-28 16:03:49 +02:00
impls.rs sort navigations to make tests stable 2019-03-14 13:28:45 +03:00
join_lines.rs add ast::tokens 2019-04-02 10:23:29 +03:00
lib.rs Basic resolution for ADT 2019-04-23 14:32:47 -04:00
line_index.rs replace todo with fixme 2019-03-23 11:07:09 +03:00
line_index_utils.rs line_index and line_index_utils moved to ra_ide_api 2019-03-22 15:24:43 +03:00
marks.rs Allow goto-definition to work for named fields in struct initializer 2019-02-27 17:51:59 +02:00
matching_brace.rs switch to new rowan 2019-04-01 12:06:24 +03:00
mock_analysis.rs remove ignored macro tests 2019-02-19 20:06:53 +03:00
parent_module.rs Move ra_ide_api unit tests 2019-03-25 21:03:32 +01:00
references.rs fold ScopeWithSyntax into SourceAnalyzer 2019-04-13 10:49:01 +03:00
runnables.rs obsolete fixm 2019-04-13 09:50:02 +03:00
status.rs migrate to salsas interning 2019-04-09 22:51:22 +03:00
symbol_index.rs CR corrections 2019-04-23 22:19:45 +02:00
syntax_highlighting.rs switch to new rowan 2019-04-01 12:06:24 +03:00
syntax_tree.rs always show token text 2019-04-02 14:49:46 +03:00
test_utils.rs Simplify changes and fix tests 2019-03-22 17:12:32 +01:00
typing.rs More future-proof comment kind 2019-04-02 12:18:52 +03:00