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

Method variableChildAt

plugins/debuggercommon/tests/debuggertestbase.cpp:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214Variable* DebuggerTestBase::variableChildAt(Variable* variable, int index) const
215{
216 QVERIFY_RETURN(variable, nullptr);
217 const auto variableIndex = variableCollection()->indexForItem(variable, 0);
218 const auto childIndex = variableCollection()->index(index, 0, variableIndex);
219 return qobject_cast<Variable*>(variableCollection()->itemForIndex(childIndex));
220}
221
222Variable* DebuggerTestBase::watchVariableAt(int index) const
223{

Callers

nothing calls this directly

Calls 4

variableCollectionFunction · 0.85
indexForItemMethod · 0.80
indexMethod · 0.45
itemForIndexMethod · 0.45

Tested by

no test coverage detected