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

Function AsStringWithFQNames

pkg/sql/sem/tree/format.go:802–806  ·  view source on GitHub ↗

AsStringWithFQNames pretty prints a node to a string with the FmtAlwaysQualifyTableNames flag (which requires annotations).

(n NodeFormatter, ann *Annotations)

Source from the content-addressed store, hash-verified

800// AsStringWithFQNames pretty prints a node to a string with the
801// FmtAlwaysQualifyTableNames flag (which requires annotations).
802func AsStringWithFQNames(n NodeFormatter, ann *Annotations) string {
803 ctx := NewFmtCtx(FmtAlwaysQualifyNames, FmtAnnotations(ann))
804 ctx.FormatNode(n)
805 return ctx.CloseAndGetString()
806}
807
808// AsString pretty prints a node to a string.
809func AsString(n NodeFormatter) string {

Callers

nothing calls this directly

Calls 4

FormatNodeMethod · 0.95
CloseAndGetStringMethod · 0.95
NewFmtCtxFunction · 0.85
FmtAnnotationsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…