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

Function binExprFmtWithParenAndSubOp

pkg/sql/sem/tree/expr.go:175–185  ·  view source on GitHub ↗
(ctx *FmtCtx, e1 Expr, subOp, op string, e2 Expr)

Source from the content-addressed store, hash-verified

173}
174
175func binExprFmtWithParenAndSubOp(ctx *FmtCtx, e1 Expr, subOp, op string, e2 Expr) {
176 exprFmtWithParen(ctx, e1)
177 ctx.WriteByte(' ')
178 if subOp != "" {
179 ctx.WriteString(subOp)
180 ctx.WriteByte(' ')
181 }
182 ctx.WriteString(op)
183 ctx.WriteByte(' ')
184 exprFmtWithParen(ctx, e2)
185}
186
187// Format implements the NodeFormatter interface.
188func (node *AndExpr) Format(ctx *FmtCtx) {

Callers 1

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…