| 6568 | //--------------------------------------------------------------------------- |
| 6569 | |
| 6570 | const Function *Scope::getDestructor() const |
| 6571 | { |
| 6572 | auto it = std::find_if(functionList.cbegin(), functionList.cend(), [](const Function& f) { |
| 6573 | return f.type == FunctionType::eDestructor; |
| 6574 | }); |
| 6575 | return it == functionList.end() ? nullptr : &*it; |
| 6576 | } |
| 6577 | |
| 6578 | //--------------------------------------------------------------------------- |
| 6579 |
no test coverage detected