Expr returns the proto serializable instance of the parsed/checked expression. Deprecated: prefer cel.AstToCheckedExpr() or cel.AstToParsedExpr() and call GetExpr() the result instead.
()
| 68 | // Deprecated: prefer cel.AstToCheckedExpr() or cel.AstToParsedExpr() and call GetExpr() |
| 69 | // the result instead. |
| 70 | func (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. |
| 79 | func (ast *Ast) IsChecked() bool { |