Skip to content

Commit

Permalink
gopls/internal/golang: support parameter movement refactorings
Browse files Browse the repository at this point in the history
Add "move parameter left" and "move parameter right" refactorings, via a
more general mechanism for change signature rewrites. As part of this,
define a flexible API for change signature, though only parameter
permutation is currently supported.

For golang/go#38028

Change-Id: I14142d5456904836402d94130f6ee1e32a19066c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/581535
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
  • Loading branch information
findleyr committed Nov 25, 2024
1 parent 51e54e8 commit 68b67b4
Show file tree
Hide file tree
Showing 11 changed files with 694 additions and 95 deletions.
9 changes: 9 additions & 0 deletions gopls/doc/release/v0.17.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

# New features

## Change signature refactoring

TODO(rfindley): document the state of change signature refactoring once the
feature set stabilizes.

## Improvements to existing refactoring operations

TODO(rfindley): document the full set of improvements to rename/extract/inline.

## Extract declarations to new file

Gopls now offers another code action,
Expand Down
Loading

0 comments on commit 68b67b4

Please sign in to comment.