(value: string, used: Set<string>, fallback: string)
| 260 | } |
| 261 | |
| 262 | function 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 | |
| 273 | function isNonNullableCSharpValueType(typeName: string): boolean { |
| 274 | return [ |
no test coverage detected
searching dependent graphs…