tools/internal/refactor/inline
Rob Findley 5185da1622 internal/refactor/inline: avoid redundant import names added by inlining
When analyzing callee objects, keep track of their package names so that
we don't have to assign explicit names to new imports when there is no
conflict with their implicit name.

Fixes golang/go#63613

Change-Id: I5b8dc9c514e434fb4262cab321933a28729bbd76
Reviewed-on: https://go-review.googlesource.com/c/tools/+/536755
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2023-10-23 14:08:49 +00:00
..
analyzer internal/refactor/inline: use escape analysis in purity 2023-09-21 17:51:29 +00:00
testdata internal/refactor/inline: avoid redundant import names added by inlining 2023-10-23 14:08:49 +00:00
callee.go internal/refactor/inline: avoid redundant import names added by inlining 2023-10-23 14:08:49 +00:00
calleefx.go internal/refactor/inline: more precise SelectorExpr effects 2023-10-11 03:06:43 +00:00
calleefx_test.go internal/refactor/inline: analyze callee effects 2023-09-26 21:58:08 +00:00
doc.go internal/refactor/inline: use binding decl with literalization 2023-10-16 14:21:23 +00:00
escape.go internal/refactor/inline: more precise SelectorExpr effects 2023-10-11 03:06:43 +00:00
everything_test.go internal/refactor/inline: yet more tweaks to everything test 2023-10-05 17:27:06 +00:00
export_test.go internal/refactor/inline: analyze callee effects 2023-09-26 21:58:08 +00:00
falcon.go internal/refactor/inline: work around channel type misformatting 2023-10-05 16:42:20 +00:00
falcon_test.go internal/refactor/inline: fix broken tests 2023-10-03 15:21:06 +00:00
inline.go internal/refactor/inline: avoid redundant import names added by inlining 2023-10-23 14:08:49 +00:00
inline_test.go internal/refactor/inline: reify implicit return conversions 2023-10-16 18:31:58 +00:00
util.go internal/refactor/inline: more precise SelectorExpr effects 2023-10-11 03:06:43 +00:00