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