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

Function toUnionVariantPropertyName

scripts/codegen/csharp.ts:1062–1065  ·  view source on GitHub ↗
(typeName: string, usedNames: Set<string>)

Source from the content-addressed store, hash-verified

1060}
1061
1062function toUnionVariantPropertyName(typeName: string, usedNames: Set<string>): string {
1063 const shortName = typeName.split(".").pop() ?? typeName;
1064 return uniqueCSharpIdentifier(shortName, usedNames, "Value");
1065}
1066
1067function tryGenerateSessionJsonUnionType(
1068 schema: JSONSchema7,

Callers 1

Calls 2

uniqueCSharpIdentifierFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…