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

Function toCSharpIdentifier

scripts/codegen/csharp.ts:252–260  ·  view source on GitHub ↗
(value: string, fallback: string)

Source from the content-addressed store, hash-verified

250}
251
252function toCSharpIdentifier(value: string, fallback: string): string {
253 let identifier = splitCSharpIdentifierParts(value).map(toPascalCasePart).join("");
254 if (!identifier) {
255 identifier = fallback;
256 } else if (!/^[A-Za-z_]/.test(identifier)) {
257 identifier = `${fallback}${identifier}`;
258 }
259 return identifier;
260}
261
262function uniqueCSharpIdentifier(value: string, used: Set<string>, fallback: string): string {
263 const identifier = toCSharpIdentifier(value, fallback);

Callers 1

uniqueCSharpIdentifierFunction · 0.85

Calls 2

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…