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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1633
1634// Format implements the NodeFormatter interface.
1635func (node *CollateExpr) Format(ctx *FmtCtx) {
1636 exprFmtWithParen(ctx, node.Expr)
1637 ctx.WriteString(" COLLATE ")
1638 lex.EncodeLocaleName(&ctx.Buffer, node.Locale)
1639}
1640
1641// TupleStar represents (E).* expressions.
1642// It is meant to evaporate during star expansion.

Callers

nothing calls this directly

Calls 3

EncodeLocaleNameFunction · 0.92
exprFmtWithParenFunction · 0.85
WriteStringMethod · 0.80

Tested by

no test coverage detected