package debug
import "github.com/google/cel-go/common/debug"
Package debug provides tools to print a parsed expression graph and adorn each expression element with additional metadata.
Index ¶
- func ToAdornedDebugString(e *exprpb.Expr, adorner Adorner) string
- func ToDebugString(e *exprpb.Expr) string
- type Adorner
- type Writer
Functions ¶
func ToAdornedDebugString ¶
ToAdornedDebugString gives the adorned string representation of the Expr.
func ToDebugString ¶
ToDebugString gives the unadorned string representation of the Expr.
Types ¶
type Adorner ¶
Adorner returns debug metadata that will be tacked on to the string representation of an expression.
type Writer ¶
type Writer interface { fmt.Stringer // Buffer pushes an expression into an internal queue of expressions to // write to a string. Buffer(e *exprpb.Expr) }
Writer manages writing expressions to an internal string.
Source Files ¶
- Version
- v0.17.5
- Published
- Aug 23, 2023
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- now –
Tools for package owners.