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

Method declaration

kdevplatform/language/duchain/indexeddeclaration.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32Declaration* 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}

Callers

nothing calls this directly

Calls 2

declarationForIndexMethod · 0.80
isDummyFunction · 0.70

Tested by

no test coverage detected