| 23 | static thread_local const RcxDocument* s_composeDoc = nullptr; |
| 24 | |
| 25 | static QString docTypeNameProvider(NodeKind k) { |
| 26 | if (s_composeDoc) return s_composeDoc->resolveTypeName(k); |
| 27 | auto* m = kindMeta(k); |
| 28 | return m ? QString::fromLatin1(m->typeName) : QStringLiteral("???"); |
| 29 | } |
| 30 | |
| 31 | static QString elide(QString s, int max) { |
| 32 | if (max <= 0) return {}; |
nothing calls this directly
no test coverage detected