| 45 | namespace |
| 46 | { |
| 47 | TryCatchClause const* findClause(std::vector<ASTPointer<TryCatchClause>> const& _clauses, std::optional<std::string> _errorName = {}) |
| 48 | { |
| 49 | for (auto const& clause: ranges::views::tail(_clauses)) |
| 50 | if (_errorName.has_value() ? clause->errorName() == _errorName : clause->errorName().empty()) |
| 51 | return clause.get(); |
| 52 | return nullptr; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | ASTNode::ASTNode(int64_t _id, SourceLocation _location): |
no test coverage detected