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

Method Expr

cel/env.go:71–77  ·  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

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

Callers 1

TestAstNilFunction · 0.95

Calls 2

NativeRepMethod · 0.95
ExprMethod · 0.65

Tested by 1

TestAstNilFunction · 0.76