| 2492 | return {t->classDef->next(), t->classDef->tokAt(2)}; |
| 2493 | } |
| 2494 | std::string Token::typeStr(const Token* tok) |
| 2495 | { |
| 2496 | if (tok->valueType()) { |
| 2497 | const ValueType * vt = tok->valueType(); |
| 2498 | std::string ret = vt->str(); |
| 2499 | if (!ret.empty()) |
| 2500 | return ret; |
| 2501 | } |
| 2502 | std::pair<const Token*, const Token*> r = Token::typeDecl(tok); |
| 2503 | if (!r.first || !r.second) |
| 2504 | return ""; |
| 2505 | return r.first->stringifyList(r.second, false); |
| 2506 | } |
| 2507 | |
| 2508 | void Token::scopeInfo(std::shared_ptr<ScopeInfo2> newScopeInfo) |
| 2509 | { |
nothing calls this directly
no test coverage detected