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

Function JoinDoc

pkg/util/pretty/util.go:25–34  ·  view source on GitHub ↗

JoinDoc joins Docs d with Doc s.

(s Doc, d ...Doc)

Source from the content-addressed store, hash-verified

23
24// JoinDoc joins Docs d with Doc s.
25func JoinDoc(s Doc, d ...Doc) Doc {
26 switch len(d) {
27 case 0:
28 return Nil
29 case 1:
30 return d[0]
31 default:
32 return Fold(Concat, d[0], s, JoinDoc(s, d[1:]...))
33 }
34}
35
36// JoinNestedRight nests nested with string s.
37// Every item after the first is indented.

Callers 2

docMethod · 0.92
JoinFunction · 0.85

Calls 1

FoldFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…