| 79 | } |
| 80 | |
| 81 | QString ClassFunctionDeclaration::toString() const |
| 82 | { |
| 83 | if (!abstractType()) |
| 84 | return ClassMemberDeclaration::toString(); |
| 85 | |
| 86 | TypePtr<FunctionType> function = type<FunctionType>(); |
| 87 | if (function) { |
| 88 | return QStringLiteral("%1 %2 %3").arg(function->partToString(FunctionType::SignatureReturn), |
| 89 | identifier().toString(), |
| 90 | function->partToString(FunctionType::SignatureArguments)); |
| 91 | } else { |
| 92 | QString type = abstractType() ? abstractType()->toString() : QStringLiteral("<notype>"); |
| 93 | qCDebug(LANGUAGE) << "A function has a bad type attached:" << type; |
| 94 | return i18n("invalid member-function %1 type %2", identifier().toString(), type); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /*bool ClassFunctionDeclaration::isSimilar(KDevelop::CodeItem *other, bool strict ) const |
| 99 | { |
no test coverage detected