1
0
mirror of https://github.com/golang/go synced 2024-11-26 04:07:59 -07:00

go/ast: add missing handling for ListExpr in Walk

Change-Id: I96170f1ca481b5fe21c85f99e877fa090e4dccc2
Reviewed-on: https://go-review.googlesource.com/c/go/+/304452
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Rob Findley 2021-03-24 08:51:44 -04:00 committed by Robert Findley
parent c3ec79bca9
commit 606e0aba74

View File

@ -116,6 +116,9 @@ func Walk(v Visitor, node Node) {
Walk(v, n.X)
Walk(v, n.Index)
case *ListExpr:
walkExprList(v, n.ElemList)
case *SliceExpr:
Walk(v, n.X)
if n.Low != nil {