aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/algo.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix hover on the beginning of a nested expressionFlorian Diebold2019-04-281-3/+18
| | | | | | | | | | | | | | | | 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.
* replace usages of `algo::generate` with `iter::successors` from stdRobin Freyler2019-04-131-10/+0
|
* switch to new rowanAleksey Kladov2019-04-011-16/+25
|
* Move `non_trivia_sibling` to `ra_syntax::algo`Ville Penttinen2019-02-211-1/+6
|
* docsAleksey Kladov2019-02-211-0/+1
|
* TyposErlend Tobiassen2019-01-271-2/+2
|
* add commentAleksey Kladov2019-01-081-0/+9
|
* move node at offset to aglo alreadyAleksey Kladov2019-01-081-1/+5
|
* switch ra_syntax to new rowan APIAleksey Kladov2019-01-081-6/+10
|
* grand module renameAleksey Kladov2018-12-081-0/+26