go/types, types2: remove unused argument from Checker.compositeLit

Change-Id: I4f52503bab569d85f28ae8920079de26a331b7ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/610560
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Robert Griesemer 2024-09-05 14:29:50 -07:00 committed by Gopher Robot
parent 0fc3b127a0
commit e4f9cb5f77
4 changed files with 4 additions and 4 deletions

View File

@ -1073,7 +1073,7 @@ func (check *Checker) exprInternal(T *target, x *operand, e syntax.Expr, hint Ty
}
case *syntax.CompositeLit:
check.compositeLit(T, x, e, hint)
check.compositeLit(x, e, hint)
if x.mode == invalid {
goto Error
}

View File

@ -104,7 +104,7 @@ func (check *Checker) funcLit(x *operand, e *syntax.FuncLit) {
}
}
func (check *Checker) compositeLit(T *target, x *operand, e *syntax.CompositeLit, hint Type) {
func (check *Checker) compositeLit(x *operand, e *syntax.CompositeLit, hint Type) {
var typ, base Type
var isElem bool // true if composite literal is an element of an enclosing composite literal

View File

@ -1061,7 +1061,7 @@ func (check *Checker) exprInternal(T *target, x *operand, e ast.Expr, hint Type)
}
case *ast.CompositeLit:
check.compositeLit(T, x, e, hint)
check.compositeLit(x, e, hint)
if x.mode == invalid {
goto Error
}

View File

@ -108,7 +108,7 @@ func (check *Checker) funcLit(x *operand, e *ast.FuncLit) {
}
}
func (check *Checker) compositeLit(T *target, x *operand, e *ast.CompositeLit, hint Type) {
func (check *Checker) compositeLit(x *operand, e *ast.CompositeLit, hint Type) {
var typ, base Type
var isElem bool // true if composite literal is an element of an enclosing composite literal