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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1135
1136// Format implements the NodeFormatter interface.
1137func (node *BinaryExpr) Format(ctx *FmtCtx) {
1138 binExprFmtWithParen(ctx, node.Left, node.Operator.String(), node.Right, node.Operator.Symbol.IsPadded())
1139}
1140
1141// UnaryOperator represents a unary operator used in a UnaryExpr.
1142type UnaryOperator struct {

Callers

nothing calls this directly

Calls 3

binExprFmtWithParenFunction · 0.85
IsPaddedMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected