| 190 | } |
| 191 | |
| 192 | QualifiedIdentifier DeclarationId::qualifiedIdentifier() const |
| 193 | { |
| 194 | if (!m_isDirect) { |
| 195 | QualifiedIdentifier baseIdentifier = m_indirectData.identifier.identifier(); |
| 196 | if (!m_specialization.index()) |
| 197 | return baseIdentifier; |
| 198 | return m_specialization.information().applyToIdentifier(baseIdentifier); |
| 199 | } else { |
| 200 | Declaration* decl = declaration(nullptr); |
| 201 | if (decl) |
| 202 | return decl->qualifiedIdentifier(); |
| 203 | |
| 204 | return QualifiedIdentifier(i18n("(unknown direct declaration)")); |
| 205 | } |
| 206 | |
| 207 | return QualifiedIdentifier(i18n("(missing)")) + m_indirectData.identifier.identifier(); |
| 208 | } |
| 209 | } |
nothing calls this directly
no test coverage detected