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

Function goDiscriminatedUnionInfoForType

scripts/codegen/go.ts:1038–1040  ·  view source on GitHub ↗
(typeName: string, ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

1036}
1037
1038function goDiscriminatedUnionInfoForType(typeName: string, ctx: GoCodegenCtx): GoDiscriminatedUnionInfo | undefined {
1039 return ctx.discriminatedUnions.get(typeName);
1040}
1041
1042function goDiscriminatedUnionField(goType: string, ctx: GoCodegenCtx): GoDiscriminatedUnionField | undefined {
1043 const single = goDiscriminatedUnionInfoForType(goType, ctx);

Callers 4

goTypeIsNilableFunction · 0.85
resolveGoPropertyTypeFunction · 0.85
emitGoUnionWrapperStructFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…