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

Function binExprFmtWithParen

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

Source from the content-addressed store, hash-verified

161func (*AndExpr) operatorExpr() {}
162
163func binExprFmtWithParen(ctx *FmtCtx, e1 Expr, op string, e2 Expr, pad bool) {
164 exprFmtWithParen(ctx, e1)
165 if pad {
166 ctx.WriteByte(' ')
167 }
168 ctx.WriteString(op)
169 if pad {
170 ctx.WriteByte(' ')
171 }
172 exprFmtWithParen(ctx, e2)
173}
174
175func binExprFmtWithParenAndSubOp(ctx *FmtCtx, e1 Expr, subOp, op string, e2 Expr) {
176 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…