| 63 | } |
| 64 | |
| 65 | QString FunctionDeclaration::toString() const |
| 66 | { |
| 67 | AbstractType::Ptr type = abstractType(); |
| 68 | if (!type) |
| 69 | return Declaration::toString(); |
| 70 | |
| 71 | auto function = type.dynamicCast<FunctionType>(); |
| 72 | if (function) { |
| 73 | return QStringLiteral("%1 %2 %3").arg(function->partToString(FunctionType::SignatureReturn), |
| 74 | identifier().toString(), |
| 75 | function->partToString(FunctionType::SignatureArguments)); |
| 76 | } else { |
| 77 | return Declaration::toString(); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | uint FunctionDeclaration::additionalIdentity() const |
| 82 | { |
no test coverage detected