Apply rename to a generated class name, checking both exact match and prefix replacement for derived types.
(className: string)
| 67 | |
| 68 | /** Apply rename to a generated class name, checking both exact match and prefix replacement for derived types. */ |
| 69 | function applyTypeRename(className: string): string { |
| 70 | if (TYPE_RENAMES[className]) return TYPE_RENAMES[className]; |
| 71 | for (const [from, to] of Object.entries(TYPE_RENAMES)) { |
| 72 | if (className.startsWith(from)) { |
| 73 | return to + className.slice(from.length); |
| 74 | } |
| 75 | } |
| 76 | return className; |
| 77 | } |
| 78 | |
| 79 | // ── C# utilities ──────────────────────────────────────────────────────────── |
| 80 |
no outgoing calls
no test coverage detected
searching dependent graphs…