From 076821bd2bbc30898f197ea7efb3a48cee295288 Mon Sep 17 00:00:00 2001 From: Robert Findley Date: Wed, 8 Sep 2021 16:25:54 -0400 Subject: [PATCH] internal/typeparams: update MultiIndexExpr to IndexListExpr This type was renamed in CL 348609, based on discussion in the go/ast proposal. Change-Id: I3addcf1bb192ad03f59f599a7aec68a579178fd5 Reviewed-on: https://go-review.googlesource.com/c/tools/+/348629 Trust: Robert Findley Run-TryBot: Robert Findley gopls-CI: kokoro TryBot-Result: Go Bot Reviewed-by: Robert Griesemer --- internal/typeparams/typeparams.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/typeparams/typeparams.go b/internal/typeparams/typeparams.go index e263537c86..12a4e6056f 100644 --- a/internal/typeparams/typeparams.go +++ b/internal/typeparams/typeparams.go @@ -22,7 +22,7 @@ const Enabled = true // expressions. // // For an ast.IndexExpr, the resulting IndexExprData will have exactly one -// index expression. For an ast.MultiIndexExpr (go1.18+), it may have a +// index expression. For an ast.IndexListExpr (go1.18+), it may have a // variable number of index expressions. // // For nodes that don't represent index expressions, GetIndexExprData returns @@ -36,7 +36,7 @@ func GetIndexExprData(n ast.Node) *IndexExprData { Indices: []ast.Expr{e.Index}, Rbrack: e.Rbrack, } - case *ast.MultiIndexExpr: + case *ast.IndexListExpr: return (*IndexExprData)(e) } return nil