go/internal/typeparams
Rob Findley 13cf844527 go/ast/astutil: fix panic when rewriting multi-argument type instances
Use the typeparams helper package to fix AST rewriting in go/ast/astutil
when encountering the new ListExpr type.

This is liable to break in the future when the go/ast API changes, but
at least it will be easy to find by virtue of using internal/typeparams.

Fixes golang/vscode-go#1551

Change-Id: Id34bbcdede9024ed9818bef6d73a19e993dd76a8
Reviewed-on: https://go-review.googlesource.com/c/tools/+/326131
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-06-09 21:40:20 +00:00
..
doc.go internal/typeparams: a new helper library for working with generic code 2021-05-11 03:28:22 +00:00
notypeparams.go internal/typeparams: a new helper library for working with generic code 2021-05-11 03:28:22 +00:00
typeparams.go go/ast/astutil: fix panic when rewriting multi-argument type instances 2021-06-09 21:40:20 +00:00