Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge #3708 | bors[bot] | 2020-03-24 | 1 | -33/+70 | |
|\ | | | | | | | | | | | | | | | | | | | | | 3708: Generalise syntax rewriting infrastructure to allow removal of nodes r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Generalise syntax rewriting infrastructure to allow removal of nodes | Aleksey Kladov | 2020-03-24 | 1 | -33/+52 | |
| | | ||||||
| * | Add a test | Aleksey Kladov | 2020-03-23 | 1 | -0/+18 | |
| | | ||||||
* | | Merge #3705 | bors[bot] | 2020-03-24 | 1 | -1/+1 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3705: Align naming r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | | Align naming | Aleksey Kladov | 2020-03-24 | 1 | -1/+1 | |
| | | | ||||||
* | | | Merge #3700 | bors[bot] | 2020-03-24 | 1 | -45/+45 | |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | 3700: fill match arms with empty block rather than unit tuple r=matklad a=JoshMcguigan As requested by @Veetaha in #3689 and #3687, this modifies the fill match arms assist to create match arms as an empty block `{}` rather than a unit tuple `()`. In one test I left one of the pre-existing match arms as a unit tuple, and added a body to another match arm, to demonstrate that the contents of existing match arms persist. Co-authored-by: Josh Mcguigan <[email protected]> | |||||
| * | | fill match arms with empty block rather than unit tuple | Josh Mcguigan | 2020-03-24 | 1 | -45/+45 | |
| | | | ||||||
* | | | Add a test | Kirill Bulatov | 2020-03-24 | 1 | -0/+25 | |
| | | | ||||||
* | | | Use more generic public api | Kirill Bulatov | 2020-03-24 | 2 | -23/+24 | |
| | | | ||||||
* | | | Auto import macros | Kirill Bulatov | 2020-03-24 | 2 | -15/+24 | |
|/ / | ||||||
* | | review comments | Josh Mcguigan | 2020-03-23 | 1 | -16/+108 | |
| | | ||||||
* | | implement fill match arm assist for tuple of enums | Josh Mcguigan | 2020-03-23 | 1 | -14/+149 | |
|/ | ||||||
* | disable invert if assist for if-let to fix #3281 | Josh Mcguigan | 2020-03-21 | 1 | -0/+13 | |
| | ||||||
* | Address nits and suggestions. | Steffen Lyngbaek | 2020-03-19 | 1 | -140/+32 | |
| | | | | | Simplify the logic a lot by removing the check for a placeholder pat. This means the auto-fill no longer returns a compile-able value. | |||||
* | Don't show assist if all arms are present | Steffen Lyngbaek | 2020-03-19 | 1 | -33/+37 | |
| | ||||||
* | 'Fill match arms' should work with existing match arms | Steffen Lyngbaek | 2020-03-19 | 1 | -25/+281 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Addresses #3039 This essentially adds missing match arms. The algorithm for this can get complicated rather quickly so bail in certain conditions and rely on a PlaceholderPat. The algorighm works as such: - Iterate through the Enum Def Variants - Attempt to see if the variant already exists as a match arm - If yes, skip the enum variant. If no, include it. - If it becomes complicated, rather than exhaustively deal with every branch, mark it as a "partial match" and simply include the placeholder. Conditions for "complication": - The match arm contains a match guard - Any kind of nested destrucuring Order the resulting merged match branches as such: 1. Provided match arms 2. Missing enum variant branch arms 3. End with Placeholder if required - Add extra tests | |||||
* | Cleanup imports | Aleksey Kladov | 2020-03-19 | 6 | -13/+17 | |
| | ||||||
* | Merge nested use trees | Aleksey Kladov | 2020-03-19 | 1 | -20/+52 | |
| | ||||||
* | Generalize | Aleksey Kladov | 2020-03-19 | 2 | -13/+10 | |
| | ||||||
* | Use match_ast | Aleksey Kladov | 2020-03-18 | 1 | -10/+13 | |
| | ||||||
* | Merge imports assist | Aleksey Kladov | 2020-03-18 | 3 | -25/+162 | |
| | | | | Work towards #2220 | |||||
* | Simplify | Aleksey Kladov | 2020-03-13 | 1 | -2/+2 | |
| | ||||||
* | Don't use generic DB where a concrete one will do | Aleksey Kladov | 2020-03-13 | 1 | -6/+2 | |
| | ||||||
* | Rerail split_import API onto AST | Aleksey Kladov | 2020-03-06 | 1 | -19/+33 | |
| | | | | | The code is more verbose and less efficient now, but should be reusable in add_import context as well | |||||
* | Unfold groups with single assists into plain assists | Kirill Bulatov | 2020-03-05 | 1 | -6/+1 | |
| | ||||||
* | Remove old find refs infra | Aleksey Kladov | 2020-03-04 | 1 | -11/+18 | |
| | ||||||
* | Highlight assist tests | Aleksey Kladov | 2020-03-03 | 1 | -46/+46 | |
| | ||||||
* | Fix applicability of inline local | Aleksey Kladov | 2020-03-03 | 1 | -4/+26 | |
| | ||||||
* | Rename ast::ImplBlock -> ast::ImplDef | Aleksey Kladov | 2020-02-29 | 3 | -12/+12 | |
| | ||||||
* | Fix typo | Aleksey Kladov | 2020-02-29 | 2 | -2/+2 | |
| | ||||||
* | More orthogonal API for building paths | Aleksey Kladov | 2020-02-29 | 2 | -11/+18 | |
| | ||||||
* | Simplify | Aleksey Kladov | 2020-02-28 | 2 | -16/+1 | |
| | ||||||
* | Move insert_use util to utils | Aleksey Kladov | 2020-02-28 | 2 | -532/+20 | |
| | ||||||
* | introduce const visibility assist | Douglas Campos | 2020-02-28 | 1 | -4/+9 | |
| | ||||||
* | Refactor string literals | Aleksey Kladov | 2020-02-27 | 1 | -1/+2 | |
| | ||||||
* | Refactor primary IDE API | Aleksey Kladov | 2020-02-26 | 6 | -74/+39 | |
| | | | | | | | | | | 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. | |||||
* | Remove code duplication in tests | Aleksey Kladov | 2020-02-26 | 1 | -36/+24 | |
| | ||||||
* | Add `remove_mut` assist | Aleksey Kladov | 2020-02-19 | 1 | -0/+32 | |
| | ||||||
* | More manual clippy fixes | Kirill Bulatov | 2020-02-18 | 2 | -5/+5 | |
| | ||||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 3 | -4/+4 | |
| | ||||||
* | Merge #3108 | bors[bot] | 2020-02-17 | 1 | -33/+14 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3108: Magic Completion for `impl Trait for` Associated Items r=matklad a=kdelorey # Summary This PR adds a set of magic completions to auto complete associated trait items (functions/consts/types). ![Associated Trait Impl](https://user-images.githubusercontent.com/2295721/74493144-d8f1af00-4e96-11ea-93a4-82725bf89646.gif) ## Notes Since the assist and completion share the same logic when figuring out the associated items that are missing, a shared utility was created in the `ra_assists::utils` module. Resolves #1046 As this is my first PR to the rust-analyzer project, I'm new to the codebase, feedback welcomed! Co-authored-by: Kevin DeLorey <[email protected]> | |||||
| * | Formatted changes. | Kevin DeLorey | 2020-02-11 | 1 | -2/+2 | |
| | | ||||||
| * | Fixed warning generated after refactoring. | Kevin DeLorey | 2020-02-11 | 1 | -1/+1 | |
| | | ||||||
| * | Updated the `add_missing_impl_members` to use the shared utility. | Kevin DeLorey | 2020-02-11 | 1 | -33/+14 | |
| | | ||||||
* | | Do not collect all traits | Kirill Bulatov | 2020-02-12 | 1 | -102/+53 | |
| | | ||||||
* | | Support associated consts | Kirill Bulatov | 2020-02-12 | 1 | -18/+133 | |
| | | ||||||
* | | Also consider associated constants | Kirill Bulatov | 2020-02-12 | 1 | -8/+8 | |
| | | ||||||
* | | Fix post-rebase issues | Kirill Bulatov | 2020-02-12 | 1 | -14/+13 | |
| | | ||||||
* | | Refactor the code | Kirill Bulatov | 2020-02-12 | 1 | -96/+93 | |
| | | ||||||
* | | Adjust the assist group name | Kirill Bulatov | 2020-02-12 | 1 | -9/+25 | |
| | |