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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1176
1177// Format implements the NodeFormatter interface.
1178func (node *BinaryExpr) Format(ctx *FmtCtx) {
1179 binExprFmtWithParen(ctx, node.Left, node.Operator.String(), node.Right, node.Operator.isPadded())
1180}
1181
1182// UnaryOperator represents a unary operator.
1183type UnaryOperator int

Callers

nothing calls this directly

Calls 3

binExprFmtWithParenFunction · 0.85
isPaddedMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected