MCPcopy Create free account
hub / github.com/KDE/kdevelop / context

Method context

kdevplatform/language/duchain/indexedducontext.cpp:44–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44DUContext* 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}

Callers

nothing calls this directly

Calls 2

contextForIndexMethod · 0.80
isDummyFunction · 0.70

Tested by

no test coverage detected