Home | History | Annotate | Download | only in types

Lines Matching refs:ellipsis

219 	if call.Ellipsis.IsValid() {
222 check.errorf(call.Ellipsis, "cannot use ... in call to non-variadic %s", call.Fun)
228 check.errorf(call.Ellipsis, "cannot use ... with %d-valued %s", n, call.Args[0])
238 var ellipsis token.Pos
239 if i == n-1 && call.Ellipsis.IsValid() {
240 ellipsis = call.Ellipsis
242 check.argument(call.Fun, sig, i, x, ellipsis)
259 // If ellipsis is valid, the argument is followed by ... at that position in the call.
260 func (check *Checker) argument(fun ast.Expr, sig *Signature, i int, x *operand, ellipsis token.Pos) {
285 if ellipsis.IsValid() {
288 check.errorf(ellipsis, "can only use ... with matching parameter")