| 367 | } |
| 368 | |
| 369 | uint countUses(int usedDeclarationIndex, DUContext* context) |
| 370 | { |
| 371 | uint ret = 0; |
| 372 | |
| 373 | for (int useIndex = 0; useIndex < context->usesCount(); ++useIndex) |
| 374 | if (context->uses()[useIndex].m_declarationIndex == usedDeclarationIndex) |
| 375 | ++ret; |
| 376 | |
| 377 | const auto childContexts = context->childContexts(); |
| 378 | for (DUContext* child : childContexts) { |
| 379 | if (!isNewGroup(context, child)) |
| 380 | ret += countUses(usedDeclarationIndex, child); |
| 381 | } |
| 382 | |
| 383 | return ret; |
| 384 | } |
| 385 | |
| 386 | QList<OneUseWidget*> createUseWidgets(const CodeRepresentation& code, int usedDeclarationIndex, IndexedDeclaration decl, |
| 387 | DUContext* context) |
nothing calls this directly
no test coverage detected