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

Method formatType

pkg/sql/sem/tree/pretty.go:2119–2123  ·  view source on GitHub ↗
(typ ResolvableTypeReference)

Source from the content-addressed store, hash-verified

2117}
2118
2119func (p *PrettyCfg) formatType(typ ResolvableTypeReference) pretty.Doc {
2120 ctx := NewFmtCtx(p.fmtFlags())
2121 ctx.FormatTypeReference(typ)
2122 return pretty.Text(strings.TrimSpace(ctx.String()))
2123}
2124
2125func (node *CheckConstraintTableDef) doc(p *PrettyCfg) pretty.Doc {
2126 // Final layout:

Callers 4

jsonCastMethod · 0.95
docMethod · 0.80
docRowMethod · 0.80
docTableMethod · 0.80

Calls 5

fmtFlagsMethod · 0.95
FormatTypeReferenceMethod · 0.95
TextFunction · 0.92
NewFmtCtxFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected