Converts an Ast constant into a runtime value, managed according to the given value factory. A status maybe returned if value creation fails.
| 71 | // |
| 72 | // A status maybe returned if value creation fails. |
| 73 | absl::StatusOr<Value> ConvertConstant(const Constant& constant, |
| 74 | Allocator<> allocator) { |
| 75 | return absl::visit(ConvertVisitor{allocator}, constant.constant_kind()); |
| 76 | } |
| 77 | |
| 78 | } // namespace cel::runtime_internal |
no outgoing calls
no test coverage detected