Creates CelExpression object from a checked expression. This includes an AST, source info, type hints and ident hints. Method implementation is expected to create copy of checked_expr, so that the returned CelExpression is not dependent on the lifetime of the input arguments.
| 105 | // so that the returned CelExpression is not dependent on the lifetime of |
| 106 | // the input arguments. |
| 107 | virtual absl::StatusOr<std::unique_ptr<CelExpression>> CreateExpression( |
| 108 | const cel::expr::CheckedExpr* checked_expr) const { |
| 109 | // Default implementation just passes through the expr and source info. |
| 110 | return CreateExpression(&checked_expr->expr(), |
| 111 | &checked_expr->source_info()); |
| 112 | } |
| 113 | |
| 114 | // Creates CelExpression object from a checked expression. |
| 115 | // This includes an AST, source info, type hints and ident hints. |