NewTypedTuple returns a new Tuple that is verified to be well-typed.
(typ *types.T, typedExprs Exprs)
| 832 | |
| 833 | // NewTypedTuple returns a new Tuple that is verified to be well-typed. |
| 834 | func NewTypedTuple(typ *types.T, typedExprs Exprs) *Tuple { |
| 835 | return &Tuple{ |
| 836 | Exprs: typedExprs, |
| 837 | Labels: typ.TupleLabels(), |
| 838 | typ: typ, |
| 839 | } |
| 840 | } |
| 841 | |
| 842 | // Format implements the NodeFormatter interface. |
| 843 | func (node *Tuple) Format(ctx *FmtCtx) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…