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

Function toPascalCase

scripts/codegen/csharp.ts:219–223  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

217}
218
219function toPascalCase(name: string): string {
220 const parts = splitCSharpIdentifierParts(name);
221 if (parts.length > 1) return parts.map(toPascalCasePart).join("");
222 return fixBrandCasing(name.charAt(0).toUpperCase() + name.slice(1));
223}
224
225function stripDurationMillisecondsSuffix(name: string): string {
226 if (name.length > 2 && name.endsWith("Ms") && /[a-z]/.test(name.charAt(name.length - 3))) {

Callers 15

toCSharpPropertyNameFunction · 0.70
generateDerivedClassFunction · 0.70
singularPascalFunction · 0.70
emitServerRpcClassesFunction · 0.70
emitServerApiClassFunction · 0.70
emitServerInstanceMethodFunction · 0.70
emitSessionRpcClassesFunction · 0.70
emitSessionMethodFunction · 0.70
emitSessionApiClassFunction · 0.70

Calls 3

joinMethod · 0.80
fixBrandCasingFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…