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

Method Expr

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

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

Callers 1

TestAstNilFunction · 0.95

Calls 2

NativeRepMethod · 0.95
ExprMethod · 0.65

Tested by 1

TestAstNilFunction · 0.76