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

Function formatExpression

pkg/sql/inverted/expression.go:422–430  ·  view source on GitHub ↗
(tp treeprinter.Node, expr Expression, includeSpansToRead, redactable bool)

Source from the content-addressed store, hash-verified

420}
421
422func formatExpression(tp treeprinter.Node, expr Expression, includeSpansToRead, redactable bool) {
423 switch e := expr.(type) {
424 case *SpanExpression:
425 n := tp.Child("span expression")
426 e.Format(n, includeSpansToRead, redactable)
427 default:
428 tp.Child(fmt.Sprintf("%v", e))
429 }
430}
431
432// ToProto constructs a SpanExpressionProto for execution. It should
433// be called on an expression tree that contains only *SpanExpressions.

Callers 1

FormatMethod · 0.85

Calls 2

ChildMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…