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

Function collectRpcMethods

scripts/codegen/go.ts:407–417  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

405}
406
407function collectRpcMethods(node: Record<string, unknown>): RpcMethod[] {
408 const results: RpcMethod[] = [];
409 for (const [, value] of sortByPascalName(Object.entries(node))) {
410 if (isRpcMethod(value)) {
411 results.push(value);
412 } else if (typeof value === "object" && value !== null) {
413 results.push(...collectRpcMethods(value as Record<string, unknown>));
414 }
415 }
416 return results;
417}
418
419let rpcDefinitions: DefinitionCollections = { definitions: {}, $defs: {} };
420let rpcSessionEventTopLevelNames: { types: Set<string>; consts: Set<string> } = {

Callers 2

generateRpcFunction · 0.70
collectClientGroupsFunction · 0.70

Calls 3

sortByPascalNameFunction · 0.85
isRpcMethodFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…