MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / docTypeNameProvider

Function docTypeNameProvider

src/controller.cpp:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23static thread_local const RcxDocument* s_composeDoc = nullptr;
24
25static 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
31static QString elide(QString s, int max) {
32 if (max <= 0) return {};

Callers

nothing calls this directly

Calls 2

kindMetaFunction · 0.85
resolveTypeNameMethod · 0.80

Tested by

no test coverage detected