Home | History | Annotate | Download | only in types

Lines Matching refs:Tuple

167 // A Tuple represents an ordered list of variables; a nil *Tuple is a valid (empty) tuple.
170 type Tuple struct {
174 // NewTuple returns a new tuple for the given variables.
175 func NewTuple(x ...*Var) *Tuple {
177 return &Tuple{x}
182 // Len returns the number variables of tuple t.
183 func (t *Tuple) Len() int {
190 // At returns the i'th variable of tuple t.
191 func (t *Tuple) At(i int) *Var { return t.vars[i] }
202 params *Tuple // (incoming) parameters from left to right; or nil
203 results *Tuple // (outgoing) results from left to right; or nil
211 func NewSignature(recv *Var, params, results *Tuple, variadic bool) *Signature {
233 func (s *Signature) Params() *Tuple { return s.params }
236 func (s *Signature) Results() *Tuple { return s.results }
445 func (t *Tuple) Underlying() Type { return t }
457 func (t *Tuple) String() string { return TypeString(t, nil) }