| This test verifies that gopls can rename instantiated fields. |
| // This file is adapted from the example in the issue. |
| type builder[S ~[]int] struct { |
| elements S //@rename("elements", elements2, OneToTwo) |
| type BuilderImpl[S ~[]int] struct{ builder[S] } |
| func NewBuilderImpl[S ~[]int](name string) *BuilderImpl[S] { |
| // This file is adapted from the example in the issue. |
| type builder[S ~[]int] struct { |
| elements2 S //@rename("elements", elements2, OneToTwo) |
| type BuilderImpl[S ~[]int] struct{ builder[S] } |
| func NewBuilderImpl[S ~[]int](name string) *BuilderImpl[S] { |