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

Function uniqueCSharpIdentifier

scripts/codegen/csharp.ts:262–271  ·  view source on GitHub ↗
(value: string, used: Set<string>, fallback: string)

Source from the content-addressed store, hash-verified

260}
261
262function uniqueCSharpIdentifier(value: string, used: Set<string>, fallback: string): string {
263 const identifier = toCSharpIdentifier(value, fallback);
264 if (used.has(identifier)) {
265 throw new Error(
266 `Generated C# string enum member identifier "${identifier}" is not unique for value "${value}". Add an explicit naming rule instead of stabilizing an arbitrary public member name.`
267 );
268 }
269 used.add(identifier);
270 return identifier;
271}
272
273function isNonNullableCSharpValueType(typeName: string): boolean {
274 return [

Callers 2

getOrCreateEnumFunction · 0.85

Calls 2

toCSharpIdentifierFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…