Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information