MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / NewTypedTuple

Function NewTypedTuple

pkg/sql/sem/tree/expr.go:830–836  ·  view source on GitHub ↗

NewTypedTuple returns a new Tuple that is verified to be well-typed.

(typ *types.T, typedExprs Exprs)

Source from the content-addressed store, hash-verified

828
829// NewTypedTuple returns a new Tuple that is verified to be well-typed.
830func 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.
839func (node *Tuple) Format(ctx *FmtCtx) {

Callers

nothing calls this directly

Calls 1

TupleLabelsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…