aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
Commit message (Collapse)AuthorAgeFilesLines
* Handle associated type shorthand (`T::Item`)Florian Diebold2019-09-221-370/+370
| | | | | | | | | | | | This is only allowed for generic parameters (including `Self` in traits), and special care needs to be taken to not run into cycles while resolving it, because we use the where clauses of the generic parameter to find candidates for the trait containing the associated type, but the where clauses may themselves contain instances of short-hand associated types. In some cases this is even fine, e.g. we might have `T: Trait<U::Item>, U: Iterator`. If there is a cycle, we'll currently panic, which isn't great, but better than overflowing the stack...
* 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
|
* 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`.
* rustfmtEvgenii P2019-07-301-10/+15
|
* Fix flip comma assistEvgenii P2019-07-301-0/+25
|
* Add merge_match_arm assist, bump rowan to 0.6.1Phil Ellison2019-07-292-0/+190
|
* Document AssistBuilderAleksey Kladov2019-07-292-10/+23
| | | | closes #1603
* streamline APIAleksey Kladov2019-07-211-2/+3
|
* switch to upstream rowan's APIAleksey Kladov2019-07-204-13/+14
|
* align SyntaxText API with upstreamAleksey Kladov2019-07-203-4/+7
|
* rename range -> text_rangeAleksey Kladov2019-07-2017-64/+73
|
* sane indexing in textAleksey Kladov2019-07-191-4/+3
|
* convenience apiAleksey Kladov2019-07-191-4/+4
|
* migrate ra_assists to the new ASTAleksey Kladov2019-07-1916-203/+212
|
* make Parse fields privateAleksey Kladov2019-07-122-5/+6
| | | | this is in preparation for the new rowan API
* move whitespace manipulation inside AstEditorEkaterina Babshukova2019-07-102-19/+17
|
* readabilityJeremy Kolb2019-07-051-1/+4
|
* Clippy changesJeremy Kolb2019-07-052-21/+15
|
* Some clippy fixes for 1.36Jeremy Kolb2019-07-041-6/+6
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-0418-82/+79
| | | | | | 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
* extend add_impl_members to constants and typesEkaterina Babshukova2019-07-032-50/+87
|
* Review 1Changyu Li2019-06-251-16/+19
|
* fill_match_arm works with trivial armironyman2019-06-241-2/+54
|
* Implement autoderef using the Deref traitFlorian Diebold2019-06-151-1/+1
| | | | - add support for other lang item targets, since we need the Deref lang item
* remove inherent source implsAleksey Kladov2019-06-112-2/+2
|
* use Source for StructFieldAleksey Kladov2019-06-111-2/+2
|
* use Source for TraitAleksey Kladov2019-06-111-1/+1
|
* Fix clippy::while_let_loopAlan Du2019-06-041-15/+11
|
* Fix clippy::or_fun_callAlan Du2019-06-042-3/+3
|
* Fix clippy::single_char_patternAlan Du2019-06-041-2/+2
|
* fix typos in mbe testsAleksey Kladov2019-05-282-4/+4
|
* Merge #1281bors[bot]2019-05-223-117/+263
|\ | | | | | | | | | | | | | | 1281: Move arm cond to match guard r=matklad a=unrealhoang I did split the rename to another commit, yet Github UI still show entirely new file change. Please review using commits. Co-authored-by: Unreal Hoang <[email protected]>
| * add assist to move arm condition to match guardUnreal Hoang2019-05-213-117/+263
| |
| * renameUnreal Hoang2019-05-162-2/+2
| |