mirror of https://github.com/golang/go.git
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:
parent
0fc3b127a0
commit
e4f9cb5f77
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue