| 291 | } |
| 292 | |
| 293 | absl::Status Unparser::VisitCreateList(const Expr::CreateList& expr) { |
| 294 | Print(kLeftBracket); |
| 295 | for (int i = 0; i < expr.elements_size(); i++) { |
| 296 | if (i > 0) { |
| 297 | Print(kComma, kSpace); |
| 298 | } |
| 299 | if (std::find(expr.optional_indices().begin(), |
| 300 | expr.optional_indices().end(), |
| 301 | static_cast<int32_t>(i)) != expr.optional_indices().end()) { |
| 302 | Print(kQuestionMark); |
| 303 | } |
| 304 | CEL_RETURN_IF_ERROR(Visit(expr.elements(i))); |
| 305 | } |
| 306 | Print(kRightBracket); |
| 307 | return absl::OkStatus(); |
| 308 | } |
| 309 | |
| 310 | absl::Status Unparser::VisitCreateStruct(const Expr::CreateStruct& expr) { |
| 311 | if (!expr.message_name().empty()) { |