| 362 | } // namespace |
| 363 | |
| 364 | RowType::RowType(std::vector<std::string>&& names, std::vector<TypePtr>&& types) |
| 365 | : names_{std::move(names)}, |
| 366 | children_{std::move(types)}, |
| 367 | parameters_{createTypeParameters(children_)} { |
| 368 | BOLT_CHECK_EQ( |
| 369 | names_.size(), |
| 370 | children_.size(), |
| 371 | "Mismatch names/types sizes: {}", |
| 372 | namesAndTypesToString(names_, children_)); |
| 373 | for (auto& child : children_) { |
| 374 | BOLT_CHECK_NOT_NULL( |
| 375 | child, |
| 376 | "Child types cannot be null: {}", |
| 377 | namesAndTypesToString(names_, children_)); |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | uint32_t RowType::size() const { |
| 382 | return children_.size(); |
nothing calls this directly
no test coverage detected