[tools] internal/refactor/inline: analyze result type params

0 views
Skip to first unread message

Mateusz Poliwczak (Gerrit)

unread,
Apr 14, 2026, 2:49:22 PM (20 hours ago) Apr 14
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Mark Freeman, golang...@luci-project-accounts.iam.gserviceaccount.com, Jonathan Amsterdam, Alan Donovan, golang-co...@googlegroups.com

Mateusz Poliwczak submitted the change

Change information

Commit message:
internal/refactor/inline: analyze param and result type params

Previously, type parameter references were only analyzed
in the function body. This change analyzes the function params
and result types to find type parameter references.

Fixes golang/go#78435
Change-Id: I393f8c2d5838061b658fcfbff66b1c186a6a6964
Reviewed-by: Jonathan Amsterdam <j...@google.com>
Reviewed-by: Mark Freeman <markf...@google.com>
Auto-Submit: Mateusz Poliwczak <mpoliw...@gmail.com>
Files:
  • M internal/refactor/inline/callee.go
  • M internal/refactor/inline/testdata/generic.txtar
Change size: M
Delta: 2 files changed, 99 insertions(+), 4 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I393f8c2d5838061b658fcfbff66b1c186a6a6964
Gerrit-Change-Number: 760720
Gerrit-PatchSet: 9
Gerrit-Owner: Mateusz Poliwczak <mpoliw...@gmail.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Jonathan Amsterdam <j...@google.com>
Gerrit-Reviewer: Mark Freeman <markf...@google.com>
Gerrit-Reviewer: Mateusz Poliwczak <mpoliw...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages