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

Method docRow

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

Source from the content-addressed store, hash-verified

621}
622
623func (node *From) docRow(p *PrettyCfg) pretty.TableRow {
624 if node == nil || len(node.Tables) == 0 {
625 return emptyRow
626 }
627 d := node.Tables.doc(p)
628 if node.AsOf.Expr != nil {
629 d = p.nestUnder(
630 d,
631 p.Doc(&node.AsOf),
632 )
633 }
634 return p.row("FROM", d)
635}
636
637func (node *Window) doc(p *PrettyCfg) pretty.Doc {
638 return p.unrow(node.docRow(p))

Callers 10

docMethod · 0.95
docTableMethod · 0.45
docTableMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45

Calls 4

nestUnderMethod · 0.80
DocMethod · 0.80
rowMethod · 0.80
docMethod · 0.65

Tested by

no test coverage detected