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

Method Expr

cel/env.go:65–71  ·  view source on GitHub ↗

Expr returns the proto serializable instance of the parsed/checked expression. Deprecated: prefer cel.AstToCheckedExpr() or cel.AstToParsedExpr() and call GetExpr() the result instead.

()

Source from the content-addressed store, hash-verified

63// Deprecated: prefer cel.AstToCheckedExpr() or cel.AstToParsedExpr() and call GetExpr()
64// the result instead.
65func (ast *Ast) Expr() *exprpb.Expr {
66 if ast == nil {
67 return nil
68 }
69 pbExpr, _ := celast.ExprToProto(ast.NativeRep().Expr())
70 return pbExpr
71}
72
73// IsChecked returns whether the Ast value has been successfully type-checked.
74func (ast *Ast) IsChecked() bool {

Callers 1

TestAstNilFunction · 0.95

Calls 2

NativeRepMethod · 0.95
ExprMethod · 0.65

Tested by 1

TestAstNilFunction · 0.76