MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NewTypedBinaryExpr

Function NewTypedBinaryExpr

postgres/parser/sem/tree/expr.go:1194–1199  ·  view source on GitHub ↗

NewTypedBinaryExpr returns a new BinaryExpr that is well-typed.

(op BinaryOperator, left, right TypedExpr, typ *types.T)

Source from the content-addressed store, hash-verified

1192
1193// NewTypedBinaryExpr returns a new BinaryExpr that is well-typed.
1194func NewTypedBinaryExpr(op BinaryOperator, left, right TypedExpr, typ *types.T) *BinaryExpr {
1195 node := &BinaryExpr{Operator: op, Left: left, Right: right}
1196 node.typ = typ
1197 node.memoizeFn()
1198 return node
1199}
1200
1201func (*BinaryExpr) operatorExpr() {}
1202

Callers

nothing calls this directly

Calls 1

memoizeFnMethod · 0.95

Tested by

no test coverage detected