| 40 | |
| 41 | namespace KDevelop { |
| 42 | QString typeToString(DUContext::ContextType type) |
| 43 | { |
| 44 | switch (type) { |
| 45 | case DUContext::Global: return QStringLiteral("Global"); |
| 46 | case DUContext::Namespace: return QStringLiteral("Namespace"); |
| 47 | case DUContext::Class: return QStringLiteral("Class"); |
| 48 | case DUContext::Function: return QStringLiteral("Function"); |
| 49 | case DUContext::Template: return QStringLiteral("Template"); |
| 50 | case DUContext::Enum: return QStringLiteral("Enum"); |
| 51 | case DUContext::Helper: return QStringLiteral("Helper"); |
| 52 | case DUContext::Other: return QStringLiteral("Other"); |
| 53 | } |
| 54 | Q_ASSERT(false); |
| 55 | return QString(); |
| 56 | } |
| 57 | |
| 58 | class DUChainDumperPrivate |
| 59 | { |