| 5945 | } |
| 5946 | |
| 5947 | static std::vector<Token*> findAllUsages(const Variable* var, |
| 5948 | Token* start, |
| 5949 | const Library& library) |
| 5950 | { |
| 5951 | // std::vector<Token*> result; |
| 5952 | const Scope* scope = var->scope(); |
| 5953 | if (!scope) |
| 5954 | return {}; |
| 5955 | return findTokensSkipDeadCode(library, start, scope->bodyEnd, [&](const Token* tok) { |
| 5956 | return tok->varId() == var->declarationId(); |
| 5957 | }); |
| 5958 | } |
| 5959 | |
| 5960 | static Token* findStartToken(const Variable* var, Token* start, const Library& library) |
| 5961 | { |
no test coverage detected