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

Method contextForIndex

kdevplatform/language/duchain/topducontextdynamicdata.cpp:823–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821}
822
823DUContext* TopDUContextDynamicData::contextForIndex(uint index) const
824{
825 if (!m_dataLoaded)
826 loadData();
827
828 if (index == 0) {
829 return m_topContext;
830 }
831
832 return m_contexts.itemForIndex(index);
833}
834
835Declaration* TopDUContextDynamicData::declarationForIndex(uint index) const
836{

Callers 3

itemForIndexMethod · 0.80
dataMethod · 0.80
contextMethod · 0.80

Calls 1

itemForIndexMethod · 0.45

Tested by

no test coverage detected