Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Convert code to text-size | Aleksey Kladov | 2020-04-25 | 1 | -6/+6 |
| | |||||
* | Fix panic in split_imports assist | Aleksey Kladov | 2020-04-20 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | The fix is admittedly quit literally just papering over. Long-term, I see two more principled approaches: * we switch to a fully tree-based impl, without parse . to_string step; with this approach, there shouldn't be any panics. The results might be nonsensical, but so was the original input. * we preserve the invariant that re-parsing constructed node is an identity, and make all the `make_xxx` method return an `Option`. closes #4044 | ||||
* | Don't expose SyntaxNodePtr impl details | Aleksey Kladov | 2020-04-16 | 1 | -1/+1 |
| | |||||
* | Remove allocations from LCA | Aleksey Kladov | 2020-04-09 | 1 | -3/+13 |
| | | | | | I haven't actually profiled this, but not allocating a hash map (or anything, really) seems like a good idea | ||||
* | Fix warnings emitted when compiling as part of rustc | Luca Barbieri | 2020-04-08 | 1 | -1/+1 |
| | |||||
* | Remove dead code | Aleksey Kladov | 2020-03-25 | 1 | -11/+0 |
| | |||||
* | Generalise syntax rewriting infrastructure to allow removal of nodes | Aleksey Kladov | 2020-03-24 | 1 | -29/+109 |
| | |||||
* | Add identity expansion checking | Edwin Cheng | 2020-03-21 | 1 | -0/+4 |
| | |||||
* | Generalize | Aleksey Kladov | 2020-03-19 | 1 | -0/+4 |
| | |||||
* | Cleanup editing API | Aleksey Kladov | 2020-02-29 | 1 | -3/+28 |
| | |||||
* | Skip trival token in original_range | Edwin Cheng | 2020-02-26 | 1 | -1/+13 |
| | |||||
* | Refactor primary IDE API | Aleksey Kladov | 2020-02-26 | 1 | -1/+6 |
| | | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax. | ||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 1 | -4/+5 |
| | |||||
* | ra_syntax: changed added diagnostics information returned from tokenize() ↵ | Veetaha | 2020-02-03 | 1 | -1/+1 |
| | | | | (implemented with iterators) | ||||
* | Fix ordering problem between qualifying paths and substituting params | Florian Diebold | 2020-01-11 | 1 | -3/+3 |
| | |||||
* | :arrow_up: rowan | Aleksey Kladov | 2020-01-09 | 1 | -2/+1 |
| | |||||
* | :arrow_up: rowan | Aleksey Kladov | 2019-12-04 | 1 | -6/+6 |
| | |||||
* | :arrow_up: rowan | Aleksey Kladov | 2019-11-19 | 1 | -17/+16 |
| | |||||
* | remove `visitor` module | Ekaterina Babshukova | 2019-10-05 | 1 | -2/+0 |
| | |||||
* | Merge branch 'master' into feature/issue/1856 | Alexander Andreev | 2019-09-30 | 1 | -2/+15 |
|\ | | | | | | | | | # Conflicts: # crates/ra_assists/src/ast_editor.rs | ||||
| * | move field list to ast/edit.rs | Aleksey Kladov | 2019-09-30 | 1 | -2/+15 |
| | | |||||
* | | Added test for check doc strings in crates. | Alexander Andreev | 2019-09-30 | 1 | -0/+2 |
|/ | | | | #1856 | ||||
* | move diff to ra_syntax | Aleksey Kladov | 2019-09-26 | 1 | -0/+42 |
| | |||||
* | add new editing API, suitable for modifying several nodes at once | Aleksey Kladov | 2019-09-25 | 1 | -0/+32 |
| | |||||
* | fewer monomorphisations | Aleksey Kladov | 2019-09-25 | 1 | -2/+2 |
| | |||||
* | streamline API | Aleksey Kladov | 2019-07-21 | 1 | -12/+5 |
| | |||||
* | minor, move type | Aleksey Kladov | 2019-07-21 | 1 | -2/+10 |
| | |||||
* | switch to upstream rowan's API | Aleksey Kladov | 2019-07-20 | 1 | -13/+104 |
| | |||||
* | rename range -> text_range | Aleksey Kladov | 2019-07-20 | 1 | -1/+1 |
| | |||||
* | migrate ra_syntax to the new rowan API | Aleksey Kladov | 2019-07-19 | 1 | -5/+5 |
| | |||||
* | allow rustfmt to reorder imports | Aleksey Kladov | 2019-07-04 | 1 | -1/+1 |
| | | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway | ||||
* | Fix hover on the beginning of a nested expression | Florian Diebold | 2019-04-28 | 1 | -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 std | Robin Freyler | 2019-04-13 | 1 | -10/+0 |
| | |||||
* | switch to new rowan | Aleksey Kladov | 2019-04-01 | 1 | -16/+25 |
| | |||||
* | Move `non_trivia_sibling` to `ra_syntax::algo` | Ville Penttinen | 2019-02-21 | 1 | -1/+6 |
| | |||||
* | docs | Aleksey Kladov | 2019-02-21 | 1 | -0/+1 |
| | |||||
* | Typos | Erlend Tobiassen | 2019-01-27 | 1 | -2/+2 |
| | |||||
* | add comment | Aleksey Kladov | 2019-01-08 | 1 | -0/+9 |
| | |||||
* | move node at offset to aglo already | Aleksey Kladov | 2019-01-08 | 1 | -1/+5 |
| | |||||
* | switch ra_syntax to new rowan API | Aleksey Kladov | 2019-01-08 | 1 | -6/+10 |
| | |||||
* | grand module rename | Aleksey Kladov | 2018-12-08 | 1 | -0/+26 |