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

Method findUseAt

kdevplatform/language/duchain/ducontext.cpp:1424–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422}
1423
1424int DUContext::findUseAt(const CursorInRevision& position) const
1425{
1426 ENSURE_CAN_READ
1427
1428 if (!range().contains(position))
1429 return -1;
1430
1431 for (unsigned int a = 0; a < d_func()->m_usesSize(); ++a)
1432 if (d_func()->m_uses()[a].m_range.contains(position))
1433 return a;
1434
1435 return -1;
1436}
1437
1438bool DUContext::inSymbolTable() const
1439{

Calls 2

rangeFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected