| 1506 | } |
| 1507 | |
| 1508 | QVector<RangeInRevision> allUses(DUContext* context, int declarationIndex, bool noEmptyUses) |
| 1509 | { |
| 1510 | QVector<RangeInRevision> ret; |
| 1511 | for (int a = 0; a < context->usesCount(); ++a) |
| 1512 | if (context->uses()[a].m_declarationIndex == declarationIndex) |
| 1513 | if (!noEmptyUses || !context->uses()[a].m_range.isEmpty()) |
| 1514 | ret << context->uses()[a].m_range; |
| 1515 | |
| 1516 | const auto childContexts = context->childContexts(); |
| 1517 | for (DUContext* child : childContexts) { |
| 1518 | ret += allUses(child, declarationIndex, noEmptyUses); |
| 1519 | } |
| 1520 | |
| 1521 | return ret; |
| 1522 | } |
| 1523 | |
| 1524 | DUContext::SearchItem::SearchItem(const QualifiedIdentifier& id, const Ptr& nextItem, int start) |
| 1525 | : isExplicitlyGlobal(start == 0 ? id.explicitlyGlobal() : false) |
no test coverage detected