MCPcopy Index your code
hub / github.com/github/copilot-sdk / applyTypeRename

Function applyTypeRename

scripts/codegen/csharp.ts:69–77  ·  view source on GitHub ↗

Apply rename to a generated class name, checking both exact match and prefix replacement for derived types.

(className: string)

Source from the content-addressed store, hash-verified

67
68/** Apply rename to a generated class name, checking both exact match and prefix replacement for derived types. */
69function 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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…