| 30 | } |
| 31 | |
| 32 | Declaration* IndexedDeclaration::declaration() const |
| 33 | { |
| 34 | if (isDummy()) |
| 35 | return nullptr; |
| 36 | // ENSURE_CHAIN_READ_LOCKED |
| 37 | if (!m_topContext || !m_declarationIndex) |
| 38 | return nullptr; |
| 39 | |
| 40 | TopDUContext* ctx = DUChain::self()->chainForIndex(m_topContext); |
| 41 | if (!ctx) |
| 42 | return nullptr; |
| 43 | |
| 44 | return ctx->m_dynamicData->declarationForIndex(m_declarationIndex); |
| 45 | } |
nothing calls this directly
no test coverage detected