tools/internal/refactor/inline/testdata
Alan Donovan c9675c27f7 internal/refactor/inline: avoid unnecessary import renames
When an inline eliminates the last use of an import,
that name is available for re-use. Don't choose a worse
name when adding imports for the callee.

Fixes golang/go#67281

Change-Id: Idb731e0d3073292c639697819236448f99b7602a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/592575
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Lasse Folger <lassefolger@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-24 18:53:09 +00:00
..
basic-err.txtar internal/refactor/inline: don't insert unnecessary parens 2023-10-02 18:01:37 +00:00
basic-literal.txtar internal/refactor/inline: use binding decl with literalization 2023-10-16 14:21:23 +00:00
basic-reduce.txtar internal/refactor/inline: don't insert unnecessary parens 2023-10-02 18:01:37 +00:00
cgo.txtar internal/refactor/inline: reject attempts to inline in cgo code 2023-09-26 17:51:22 +00:00
comments.txtar internal/refactor/inline: don't insert unnecessary parens 2023-10-02 18:01:37 +00:00
crosspkg-selfref.txtar internal/refactor/inline: treat self-ref as free ref 2023-09-18 15:31:26 +00:00
crosspkg.txtar internal/refactor/inline: avoid redundant import names added by inlining 2023-10-23 14:08:49 +00:00
dotimport.txtar internal/refactor/inline: avoid redundant import names added by inlining 2023-10-23 14:08:49 +00:00
embed.txtar internal/refactor/inline: handle implicit field selections 2023-09-18 15:51:08 +00:00
empty-body.txtar internal/refactor/inline: simplify ordinary variadics 2023-09-13 21:17:03 +00:00
err-basic.txtar internal/refactor/inline: an inliner for Go source 2023-08-29 15:44:16 +00:00
err-shadow-builtin.txtar internal/refactor/inline: improve a confusing error message 2024-01-05 21:50:31 +00:00
err-shadow-pkg.txtar internal/refactor/inline: improve a confusing error message 2024-01-05 21:50:31 +00:00
err-unexported.txtar internal/refactor/inline: an inliner for Go source 2023-08-29 15:44:16 +00:00
exprstmt.txtar internal/refactor/inline: an inliner for Go source 2023-08-29 15:44:16 +00:00
import-rename.txtar internal/refactor/inline: avoid unnecessary import renames 2024-06-24 18:53:09 +00:00
import-shadow.txtar internal/refactor/inline: less hacky solution for eliding braces 2023-10-16 16:56:32 +00:00
internal.txtar internal/refactor/inline: an inliner for Go source 2023-08-29 15:44:16 +00:00
issue62667.txtar internal/refactor/inline: use binding decl with literalization 2023-10-16 14:21:23 +00:00
issue63298.txtar internal/refactor/inline: avoid redundant import names added by inlining 2023-10-23 14:08:49 +00:00
line-directives.txtar internal/refactor/inline: ignore line directives 2023-09-18 19:10:26 +00:00
method.txtar internal/refactor/inline: less hacky solution for eliding braces 2023-10-16 16:56:32 +00:00
multistmt-body.txtar internal/refactor/inline: less hacky solution for eliding braces 2023-10-16 16:56:32 +00:00
n-ary.txtar internal/refactor/inline: an inliner for Go source 2023-08-29 15:44:16 +00:00
param-subst.txtar internal/refactor/inline: don't insert unnecessary parens 2023-10-02 18:01:37 +00:00
revdotimport.txtar internal/refactor/inline: avoid redundant import names added by inlining 2023-10-23 14:08:49 +00:00
std-internal.txtar internal/refactor/inline: don't assume strings.Index calls internal/bytealg 2024-04-25 05:11:20 +00:00
tailcall.txtar internal/refactor/inline: less hacky solution for eliding braces 2023-10-16 16:56:32 +00:00