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

Function normalizeExportBlock

scripts/codegen/typescript.ts:233–240  ·  view source on GitHub ↗
(block: string)

Source from the content-addressed store, hash-verified

231}
232
233function normalizeExportBlock(block: string): string {
234 return block
235 .replace(/\/\*\*[\s\S]*?\*\//g, "")
236 .split(/\r?\n/)
237 .map((line) => line.trim())
238 .filter((line) => line.length > 0)
239 .join("\n");
240}
241
242function collectRpcMethods(node: Record<string, unknown>): RpcMethod[] {
243 const results: RpcMethod[] = [];

Callers 1

appendUniqueExportBlocksFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…