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

Function pushGoEncodingBlock

scripts/codegen/go.ts:1061–1068  ·  view source on GitHub ↗
(blockLines: string[], ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

1059}
1060
1061function pushGoEncodingBlock(blockLines: string[], ctx: GoCodegenCtx): void {
1062 if (blockLines.length === 0) return;
1063 const block = blockLines.join("\n");
1064 ctx.encodingBlocks ??= new Set<string>();
1065 if (ctx.encodingBlocks.has(block)) return;
1066 ctx.encodingBlocks.add(block);
1067 ctx.encoding.push(block);
1068}
1069
1070function registerGoExternalUnionUnmarshalers(
1071 schema: JSONSchema7,

Calls 3

joinMethod · 0.80
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…