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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

248
249// Format implements the NodeFormatter interface.
250func (node *NotExpr) Format(ctx *FmtCtx) {
251 ctx.WriteString("NOT ")
252 exprFmtWithParen(ctx, node.Expr)
253}
254
255// NewTypedNotExpr returns a new NotExpr that is verified to be well-typed.
256func NewTypedNotExpr(expr TypedExpr) *NotExpr {

Callers

nothing calls this directly

Calls 1

exprFmtWithParenFunction · 0.85

Tested by

no test coverage detected