Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | 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 | |
| | | ||||||
* | | Add profiling | Kirill Bulatov | 2020-02-12 | 1 | -0/+3 | |
| | | ||||||
* | | Support trait method call autoimports | Kirill Bulatov | 2020-02-12 | 1 | -100/+206 | |
| | | ||||||
* | | Trait location draft | Kirill Bulatov | 2020-02-12 | 1 | -9/+120 | |
| | | ||||||
* | | Refactor path for imports extraction | Kirill Bulatov | 2020-02-12 | 1 | -20/+92 | |
| | | ||||||
* | | Add method tests | Kirill Bulatov | 2020-02-12 | 1 | -3/+116 | |
| | | ||||||
* | | Resolve methods and functions better | Kirill Bulatov | 2020-02-12 | 1 | -3/+20 | |
| | | ||||||
* | | Introduce AttrKind | Kirill Bulatov | 2020-02-12 | 1 | -2/+1 | |
| | | ||||||
* | | Do not add imports before inner attributes | Kirill Bulatov | 2020-02-12 | 1 | -1/+29 | |
| | |