aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
Commit message (Collapse)AuthorAgeFilesLines
* [#1807] Refactor file structureLúcás Meier2019-10-041-33/+33
| | | | | Use the more conventional way of importing the ast types, and put the assist at the top of the file.
* Fix formattingLúcás Meier2019-10-041-22/+9
|
* Create an assist for applying De Morgan's lawLúcás Meier2019-10-031-0/+115
| | | | | | | | | | | | | | | Fixes #1807 This assist can transform expressions of the form `!x || !y` into `!(x && y)`. This also works with `&&`. This assist will only trigger if the cursor is on the central logical operator. The main limitation of this current implementation is that both operands need to be an explicit negation, either of the form `!x`, or `x != y`. More operands could be accepted, but this would complicate the implementation quite a bit.
* WIP: Add demorgan application with naive negationLúcás Meier2019-10-031-0/+2
|
* Merge branch 'master' into feature/issue/1856Alexander Andreev2019-09-306-277/+27
|\ | | | | | | | | # Conflicts: # crates/ra_assists/src/ast_editor.rs
| * Fix API of AttruHOOCCOOHu2019-09-301-1/+1
| |
| * cleanup editorAleksey Kladov2019-09-301-4/+7
| |
| * remove ast_editor.rsAleksey Kladov2019-09-303-59/+4
| |
| * move remove bounds to ast/edit.rsAleksey Kladov2019-09-302-17/+1
| |
| * move field list to ast/edit.rsAleksey Kladov2019-09-302-100/+5
| |
| * migrate add impl items to the new editing APIAleksey Kladov2019-09-283-77/+15
| |
| * simplify strip attrsAleksey Kladov2019-09-282-26/+3
| |
* | Added test for check doc strings in crates.Alexander Andreev2019-09-3021-0/+42
|/ | | | #1856
* Merge #1815bors[bot]2019-09-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1815: Support correct `$crate` expansion in macros r=uHOOCCOOHu a=uHOOCCOOHu This PR makes normal use cases of `$crate` from macros work as expected. It makes more macros from `std` work. Type inference works well with `panic`, `unimplemented`, `format`, and maybe more. Sadly that `vec![1, 2, 3]` still not works, but it is not longer an issue about macro. Screenshot: ![Screenshot_20190927_022136](https://user-images.githubusercontent.com/14816024/65714465-b4568f80-e0cd-11e9-8043-dd44c2ae8040.png) Co-authored-by: uHOOCCOOHu <[email protected]>
| * Support `$crate` in item and expr place.uHOOCCOOHu2019-09-261-1/+1
| |
* | Start simplifying editing APIAleksey Kladov2019-09-264-78/+4
|/
* move diff to ra_syntaxAleksey Kladov2019-09-261-24/+3
|
* keep ast creation API simpleAleksey Kladov2019-09-266-244/+74
|
* add new editing API, suitable for modifying several nodes at onceAleksey Kladov2019-09-253-31/+77
|
* Merge #1911bors[bot]2019-09-251-4/+4
|\ | | | | | | | | | | | | | | 1911: fewer monomorphisations r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * fewer monomorphisationsAleksey Kladov2019-09-251-4/+4
| |
* | clean up namingAleksey Kladov2019-09-251-1/+1
| |
* | shorten AstBuilder namesAleksey Kladov2019-09-254-50/+38
| |
* | minor builder cleanupsAleksey Kladov2019-09-253-55/+55
| |
* | cleaned up record field builderAleksey Kladov2019-09-251-6/+1
| |
* | move ast builder to a separate fileAleksey Kladov2019-09-256-234/+236
| |
* | move assists to subdirAleksey Kladov2019-09-2519-47/+53
|/
* Remove redundant clone()Shotaro Yamada2019-09-251-1/+1
|
* Revert SelfJeremy Kolb2019-09-231-1/+1
|
* Drive by lintskjeremy2019-09-232-2/+2
|
* Suspicious line endingskjeremy2019-09-201-370/+370
|
* feat(assists): Apply commentsGeobert Quach2019-09-191-100/+59
|
* feat(assists): Rename `escape_quote` to `escape_double_quote`Geobert Quach2019-09-191-3/+3
|
* feature(assists): Fix regressionGeobert Quach2019-09-191-2/+2
|
* feat(assists): manage `"` when removing hash and make_usual_stringGeobert Quach2019-09-191-5/+90
|
* feat(assists): raw string <-> usual string manipulationGeobert Quach2019-09-192-0/+331
| | | | Fixes #1730
* Move store TypeRef of type based path in PathKinduHOOCCOOHu2019-09-151-1/+1
|
* Support path starting with a typeuHOOCCOOHu2019-09-151-3/+4
|
* rename AdtDef -> AdtAleksey Kladov2019-09-121-2/+2
|
* Minor typo fix for ra_assists code docNelson Chen2019-09-081-1/+1
|
* add assist to move type bounds to where clauseEkaterina Babshukova2019-09-053-0/+167
|
* fix assistsAleksey Kladov2019-09-022-4/+7
|
* fix hir for new block syntaxAleksey Kladov2019-09-022-7/+13
|
* :arrow_up: once_cellAleksey Kladov2019-09-011-1/+1
|
* rename struct -> record, pos -> tupleAleksey Kladov2019-08-233-13/+13
|
* make ast object safeAleksey Kladov2019-08-231-2/+5
|
* refactor fill_match_arms assistEkaterina Babshukova2019-08-223-132/+170
|
* refactor TryConvWith similar to ConvWithAleksey Kladov2019-08-201-4/+1
|
* remove ast::*Kind enums from assistsAleksey Kladov2019-08-195-45/+45
|
* Lower fully qualified associated type pathsFlorian Diebold2019-08-121-0/+1
| | | | I.e. `<T as Trait>::Foo`.