MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / doc

Method doc

pkg/sql/sem/tree/pretty.go:480–491  ·  view source on GitHub ↗
(p *PrettyCfg)

Source from the content-addressed store, hash-verified

478}
479
480func (node *Limit) doc(p *PrettyCfg) pretty.Doc {
481 res := pretty.Nil
482 for i, r := range node.docTable(p) {
483 if r.Doc != nil {
484 if i > 0 {
485 res = pretty.Concat(res, pretty.Line)
486 }
487 res = pretty.Concat(res, p.nestUnder(pretty.Text(r.Label), r.Doc))
488 }
489 }
490 return res
491}
492
493func (node *Limit) docTable(p *PrettyCfg) []pretty.TableRow {
494 if node == nil {

Callers

nothing calls this directly

Calls 4

docTableMethod · 0.95
ConcatFunction · 0.92
TextFunction · 0.92
nestUnderMethod · 0.80

Tested by

no test coverage detected