| 591 | } |
| 592 | |
| 593 | Declaration Declaration::Sequence(std::vector<Declaration> decls) { |
| 594 | DCHECK(!decls.empty()); |
| 595 | |
| 596 | Declaration out = std::move(decls.back()); |
| 597 | decls.pop_back(); |
| 598 | auto receiver = &out; |
| 599 | while (!decls.empty()) { |
| 600 | Declaration input = std::move(decls.back()); |
| 601 | decls.pop_back(); |
| 602 | |
| 603 | receiver->inputs.emplace_back(std::move(input)); |
| 604 | receiver = &std::get<Declaration>(receiver->inputs.front()); |
| 605 | } |
| 606 | return out; |
| 607 | } |
| 608 | |
| 609 | bool Declaration::IsValid(ExecFactoryRegistry* registry) const { |
| 610 | return !this->factory_name.empty() && this->options != nullptr; |
nothing calls this directly
no test coverage detected