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

Function binExprFmtWithParen

pkg/sql/sem/tree/expr.go:161–171  ·  view source on GitHub ↗
(ctx *FmtCtx, e1 Expr, op string, e2 Expr, pad bool)

Source from the content-addressed store, hash-verified

159func (*AndExpr) operatorExpr() {}
160
161func binExprFmtWithParen(ctx *FmtCtx, e1 Expr, op string, e2 Expr, pad bool) {
162 exprFmtWithParen(ctx, e1)
163 if pad {
164 ctx.WriteByte(' ')
165 }
166 ctx.WriteString(op)
167 if pad {
168 ctx.WriteByte(' ')
169 }
170 exprFmtWithParen(ctx, e2)
171}
172
173func binExprFmtWithParenAndSubOp(ctx *FmtCtx, e1 Expr, subOp, op string, e2 Expr) {
174 exprFmtWithParen(ctx, e1)

Callers 5

FormatMethod · 0.85
FormatMethod · 0.85
FormatMethod · 0.85
FormatMethod · 0.85
FormatMethod · 0.85

Calls 1

exprFmtWithParenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…