| 80 | } |
| 81 | |
| 82 | QString ClassSpecializationType::toString() const |
| 83 | { |
| 84 | QualifiedIdentifier id = qualifiedIdentifier(); |
| 85 | if (!id.isEmpty()) { |
| 86 | QString result = AbstractType::toString() + strippedQid(id) + QLatin1String("< "); |
| 87 | bool first = true; |
| 88 | const auto& templateParameters = this->templateParameters(); |
| 89 | for (const auto& param : templateParameters) { |
| 90 | if (first) { |
| 91 | first = false; |
| 92 | } else { |
| 93 | result += QLatin1String(", "); |
| 94 | } |
| 95 | result += param.abstractType()->toString(); |
| 96 | } |
| 97 | result += QLatin1String(" >"); |
| 98 | return result; |
| 99 | } |
| 100 | |
| 101 | return StructureType::toString(); |
| 102 | } |
| 103 | |
| 104 | bool ClassSpecializationType::equals(const KDevelop::AbstractType* rhs) const |
| 105 | { |
no test coverage detected