MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / NewTypedOrExpr

Function NewTypedOrExpr

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

NewTypedOrExpr returns a new OrExpr that is verified to be well-typed.

(left, right TypedExpr)

Source from the content-addressed store, hash-verified

220
221// NewTypedOrExpr returns a new OrExpr that is verified to be well-typed.
222func NewTypedOrExpr(left, right TypedExpr) *OrExpr {
223 node := &OrExpr{Left: left, Right: right}
224 node.typ = types.Bool
225 return node
226}
227
228// TypedLeft returns the OrExpr's left expression as a TypedExpr.
229func (node *OrExpr) TypedLeft() TypedExpr {

Callers 2

normalizeMethod · 0.85
normalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…