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

Method Format

postgres/parser/sem/tree/create_function.go:93–106  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

91
92// Format implements the NodeFormatter interface.
93func (node RoutineArgs) Format(ctx *FmtCtx) {
94 for i, t := range node {
95 if i != 0 {
96 ctx.WriteString(", ")
97 }
98 ctx.FormatNode(&t.Mode)
99 ctx.WriteByte(' ')
100 if t.Name != "" {
101 ctx.FormatNode(&t.Name)
102 ctx.WriteByte(' ')
103 }
104 t.Type.SQLString()
105 }
106}
107
108type RoutineArgMode int8
109

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.80
FormatNodeMethod · 0.80
SQLStringMethod · 0.65

Tested by

no test coverage detected