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