Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add `find_impl_block_end` assist helper | Yoshua Wuyts | 2021-02-12 | 1 | -2/+39 |
| | |||||
* | Add getter/setter assists | Yoshua Wuyts | 2021-02-09 | 1 | -12/+2 |
| | | | | | | | | | | | | | | | | Finish implementing `generate_setter` assists Make `generate_impl_text` util generic generate getter methods Fix getter / setter naming It's now in-line with the Rust API naming guidelines: https://rust-lang.github.io/api-guidelines/naming.html#getter-names-follow-rust-convention-c-getter apply clippy Improve examples | ||||
* | AdtDef -> Adt | Aleksey Kladov | 2021-02-07 | 1 | -1/+1 |
| | |||||
* | Merge #7572 | bors[bot] | 2021-02-05 | 1 | -14/+6 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 7572: Add `find_or_create_impl_block` to assist utils r=matklad a=yoshuawuyts This is another continuation of https://github.com/rust-analyzer/rust-analyzer/pull/7562, introducing a small util to either find an `impl` block, or create a new one if none exists. I copied this code from the `generate_new` assist into https://github.com/rust-analyzer/rust-analyzer/pull/7562, and this unifies both into a helper. It doesn't feel super polished in its current state, but my hope is that this is enough of a starting point that it can be expanded on later. For example something that would be useful would be a flag which either returns the index of the start of the block, or the end of the block. Anyway, I hope this is useful. Thanks! Co-authored-by: Yoshua Wuyts <[email protected]> | ||||
| * | Add `find_or_create_impl_block` to assist utils | Yoshua Wuyts | 2021-02-05 | 1 | -14/+6 |
| | | |||||
* | | Add doc gen to the `generate_enum_match_method` assist | Yoshua Wuyts | 2021-02-05 | 1 | -1/+9 |
|/ | |||||
* | Move `find_struct_impl` to assist utils | Yoshua Wuyts | 2021-02-05 | 1 | -90/+10 |
| | |||||
* | add `generate-enum-match` assist | Yoshua Wuyts | 2021-02-05 | 1 | -0/+293 |