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

Function toPascalCase

scripts/codegen/go.ts:95–101  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

93}
94
95function toPascalCase(s: string): string {
96 return s
97 .split(/[^A-Za-z0-9]+/)
98 .filter((word) => word.length > 0)
99 .map((w) => goIdentifierWord(w))
100 .join("");
101}
102
103function escapeRegExp(value: string): string {
104 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");

Callers 8

toGoSchemaTypeNameFunction · 0.70
sortByPascalNameFunction · 0.70
goRequestFallbackNameFunction · 0.70
goResultTypeNameFunction · 0.70
goNullableResultTypeNameFunction · 0.70
extractGoEventVariantsFunction · 0.70
emitMethodFunction · 0.70
clientHandlerMethodNameFunction · 0.70

Calls 2

goIdentifierWordFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…