| 42 | } |
| 43 | |
| 44 | DUContext* IndexedDUContext::context() const |
| 45 | { |
| 46 | if (isDummy()) |
| 47 | return nullptr; |
| 48 | // ENSURE_CHAIN_READ_LOCKED |
| 49 | if (!m_topContext) |
| 50 | return nullptr; |
| 51 | |
| 52 | TopDUContext* ctx = DUChain::self()->chainForIndex(m_topContext); |
| 53 | if (!ctx) |
| 54 | return nullptr; |
| 55 | |
| 56 | if (!m_contextIndex) |
| 57 | return ctx; |
| 58 | |
| 59 | return ctx->m_dynamicData->contextForIndex(m_contextIndex); |
| 60 | } |
nothing calls this directly
no test coverage detected