MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Format

Method Format

postgres/parser/sem/tree/expr.go:257–260  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

255
256// Format implements the NodeFormatter interface.
257func (node *NotExpr) Format(ctx *FmtCtx) {
258 ctx.WriteString("NOT ")
259 exprFmtWithParen(ctx, node.Expr)
260}
261
262// NewTypedNotExpr returns a new NotExpr that is verified to be well-typed.
263func NewTypedNotExpr(expr TypedExpr) *NotExpr {

Callers

nothing calls this directly

Calls 2

exprFmtWithParenFunction · 0.85
WriteStringMethod · 0.80

Tested by

no test coverage detected