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

Function Print

checker/printer.go:71–74  ·  view source on GitHub ↗

Print returns a string representation of the Expr message, annotated with types from the CheckedExpr. The Expr must be a sub-expression embedded in the CheckedExpr.

(e ast.Expr, checked *ast.AST)

Source from the content-addressed store, hash-verified

69// annotated with types from the CheckedExpr. The Expr must
70// be a sub-expression embedded in the CheckedExpr.
71func Print(e ast.Expr, checked *ast.AST) string {
72 a := &semanticAdorner{checked: checked}
73 return debug.ToAdornedDebugString(e, a)
74}

Callers 2

TestCheckFunction · 0.85
BenchmarkCheckFunction · 0.85

Calls 1

ToAdornedDebugStringFunction · 0.92

Tested by 2

TestCheckFunction · 0.68
BenchmarkCheckFunction · 0.68