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>
}
case *syntax.CompositeLit:
- check.compositeLit(T, x, e, hint)
+ check.compositeLit(x, e, hint)
if x.mode == invalid {
goto Error
}
}
}
-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
}
case *ast.CompositeLit:
- check.compositeLit(T, x, e, hint)
+ check.compositeLit(x, e, hint)
if x.mode == invalid {
goto Error
}
}
}
-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