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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1659
1660// Format implements the NodeFormatter interface.
1661func (node *CollateExpr) Format(ctx *FmtCtx) {
1662 exprFmtWithParen(ctx, node.Expr)
1663 ctx.WriteString(" COLLATE ")
1664 lex.EncodeLocaleName(&ctx.Buffer, node.Locale)
1665}
1666
1667// TupleStar represents (E).* expressions.
1668// It is meant to evaporate during star expansion.

Callers

nothing calls this directly

Calls 2

EncodeLocaleNameFunction · 0.92
exprFmtWithParenFunction · 0.85

Tested by

no test coverage detected