Returns Action::Match if its an exact match, return Action::Read if it partially matches the lifetime
| 385 | private: |
| 386 | // Returns Action::Match if its an exact match, return Action::Read if it partially matches the lifetime |
| 387 | Action analyzeLifetime(const Token* tok) const |
| 388 | { |
| 389 | if (!tok) |
| 390 | return Action::None; |
| 391 | if (match(tok)) |
| 392 | return Action::Match; |
| 393 | if (Token::simpleMatch(tok, ".") && analyzeLifetime(tok->astOperand1()) != Action::None) |
| 394 | return Action::Read; |
| 395 | if (astIsRHS(tok) && Token::simpleMatch(tok->astParent(), ".")) |
| 396 | return analyzeLifetime(tok->astParent()); |
| 397 | return Action::None; |
| 398 | } |
| 399 | |
| 400 | std::unordered_map<nonneg int, const Token*> getSymbols(const Token* tok) const |
| 401 | { |
no test coverage detected