aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/algo.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename ra_text_edit -> text_editAleksey Kladov2020-08-121-1/+1
|
* Update the rest of the testsAleksey Kladov2020-06-291-0/+4
|
* Fix `rewrite_root` when there's only 1 replacementJonas Schievink2020-06-131-0/+8
|
* Moderate cleanup of add_functionAleksey Kladov2020-05-201-8/+28
|
* Convert code to text-sizeAleksey Kladov2020-04-251-6/+6
|
* Fix panic in split_imports assistAleksey Kladov2020-04-201-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 detailsAleksey Kladov2020-04-161-1/+1
|
* Remove allocations from LCAAleksey Kladov2020-04-091-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 rustcLuca Barbieri2020-04-081-1/+1
|
* Remove dead codeAleksey Kladov2020-03-251-11/+0
|
* Generalise syntax rewriting infrastructure to allow removal of nodesAleksey Kladov2020-03-241-29/+109
|
* Add identity expansion checkingEdwin Cheng2020-03-211-0/+4
|
* GeneralizeAleksey Kladov2020-03-191-0/+4
|
* Cleanup editing APIAleksey Kladov2020-02-291-3/+28
|
* Skip trival token in original_rangeEdwin Cheng2020-02-261-1/+13
|
* Refactor primary IDE APIAleksey Kladov2020-02-261-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-optionsKirill Bulatov2020-02-181-4/+5
|
* ra_syntax: changed added diagnostics information returned from tokenize() ↵Veetaha2020-02-031-1/+1
| | | | (implemented with iterators)
* Fix ordering problem between qualifying paths and substituting paramsFlorian Diebold2020-01-111-3/+3
|
* :arrow_up: rowanAleksey Kladov2020-01-091-2/+1
|
* :arrow_up: rowanAleksey Kladov2019-12-041-6/+6
|
* :arrow_up: rowanAleksey Kladov2019-11-191-17/+16
|
* remove `visitor` moduleEkaterina Babshukova2019-10-051-2/+0
|
* Merge branch 'master' into feature/issue/1856Alexander Andreev2019-09-301-2/+15
|\ | | | | | | | | # Conflicts: # crates/ra_assists/src/ast_editor.rs
| * move field list to ast/edit.rsAleksey Kladov2019-09-301-2/+15
| |
* | Added test for check doc strings in crates.Alexander Andreev2019-09-301-0/+2
|/ | | | #1856
* move diff to ra_syntaxAleksey Kladov2019-09-261-0/+42
|
* add new editing API, suitable for modifying several nodes at onceAleksey Kladov2019-09-251-0/+32
|
* fewer monomorphisationsAleksey Kladov2019-09-251-2/+2
|
* streamline APIAleksey Kladov2019-07-211-12/+5
|
* minor, move typeAleksey Kladov2019-07-211-2/+10
|
* switch to upstream rowan's APIAleksey Kladov2019-07-201-13/+104
|
* rename range -> text_rangeAleksey Kladov2019-07-201-1/+1
|
* migrate ra_syntax to the new rowan APIAleksey Kladov2019-07-191-5/+5
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-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 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