| 36 | } |
| 37 | |
| 38 | Declaration* FunctionDefinition::declaration(const TopDUContext* topContext) const |
| 39 | { |
| 40 | ENSURE_CAN_READ |
| 41 | |
| 42 | const KDevVarLengthArray<Declaration*> declarations = d_func()->m_declaration.declarations( |
| 43 | topContext ? topContext : this->topContext()); |
| 44 | |
| 45 | for (Declaration* decl : declarations) { |
| 46 | if (!dynamic_cast<FunctionDefinition*>(decl)) |
| 47 | return decl; |
| 48 | } |
| 49 | |
| 50 | return nullptr; |
| 51 | } |
| 52 | |
| 53 | bool FunctionDefinition::hasDeclaration() const |
| 54 | { |
nothing calls this directly
no test coverage detected