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

Method Format

postgres/parser/sem/tree/type_name.go:59–65  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

57
58// Format implements the NodeFormatter interface.
59func (t *TypeName) Format(ctx *FmtCtx) {
60 t.ObjectNamePrefix.Format(ctx)
61 if t.ExplicitSchema || ctx.alwaysFormatTablePrefix() {
62 ctx.WriteByte('.')
63 }
64 ctx.FormatNode(&t.ObjectName)
65}
66
67// String implements the Stringer interface.
68func (t *TypeName) String() string {

Callers

nothing calls this directly

Calls 3

FormatNodeMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected