| 33 | namespace cel { |
| 34 | |
| 35 | absl::StatusOr<VariableDecl> VariableDeclFromProto( |
| 36 | absl::string_view name, const cel::expr::Decl::IdentDecl& variable, |
| 37 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 38 | google::protobuf::Arena* absl_nonnull arena) { |
| 39 | CEL_ASSIGN_OR_RETURN(Type type, |
| 40 | TypeFromProto(variable.type(), descriptor_pool, arena)); |
| 41 | return cel::MakeVariableDecl(std::string(name), type); |
| 42 | } |
| 43 | |
| 44 | absl::StatusOr<FunctionDecl> FunctionDeclFromProto( |
| 45 | absl::string_view name, |
no test coverage detected