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

Function emitGoUnionStruct

scripts/codegen/go.ts:2832–2836  ·  view source on GitHub ↗
(typeName: string, schema: JSONSchema7, ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

2830}
2831
2832function emitGoUnionStruct(typeName: string, schema: JSONSchema7, ctx: GoCodegenCtx): void {
2833 if (ctx.generatedNames.has(typeName)) return;
2834 const plan = planGoUnion(typeName, schema, ctx, true);
2835 if (plan) emitGoUnionPlan(plan, ctx);
2836}
2837
2838function emitGoUnionWrapperStruct(typeName: string, schema: JSONSchema7, ctx: GoCodegenCtx): void {
2839 if (ctx.generatedNames.has(typeName)) return;

Callers

nothing calls this directly

Calls 2

planGoUnionFunction · 0.85
emitGoUnionPlanFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…