MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ToAdornedDebugString

Function ToAdornedDebugString

common/debug/debug.go:61–65  ·  view source on GitHub ↗

ToAdornedDebugString gives the adorned string representation of the Expr.

(e ast.Expr, adorner Adorner)

Source from the content-addressed store, hash-verified

59
60// ToAdornedDebugString gives the adorned string representation of the Expr.
61func ToAdornedDebugString(e ast.Expr, adorner Adorner) string {
62 w := newDebugWriter(adorner)
63 w.Buffer(e)
64 return w.String()
65}
66
67// debugWriter is used to print out pretty-printed debug strings.
68type debugWriter struct {

Callers 6

DebugASTFunction · 0.92
PrintFunction · 0.92
TestParseFunction · 0.92
ToDebugStringFunction · 0.85
ToDebugStringWithIDsFunction · 0.85

Calls 3

newDebugWriterFunction · 0.85
BufferMethod · 0.65
StringMethod · 0.65

Tested by 2

TestParseFunction · 0.74