| 1398 | } |
| 1399 | |
| 1400 | const Token* followReferences(const Token* tok, ErrorPath* errors) |
| 1401 | { |
| 1402 | if (!tok) |
| 1403 | return nullptr; |
| 1404 | auto refs = followAllReferencesInternal(tok, true, false); |
| 1405 | if (refs.size() == 1) { |
| 1406 | if (errors) |
| 1407 | *errors = std::move(refs.front().errors); |
| 1408 | return refs.front().token; |
| 1409 | } |
| 1410 | return nullptr; |
| 1411 | } |
| 1412 | |
| 1413 | static bool isSameLifetime(const Token * const tok1, const Token * const tok2) |
| 1414 | { |
no test coverage detected