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

Function collectRpcMethods

java/scripts/codegen/java.ts:1243–1253  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

1241}
1242
1243function collectRpcMethods(node: Record<string, unknown>): [string, RpcMethod][] {
1244 const results: [string, RpcMethod][] = [];
1245 for (const [key, value] of Object.entries(node)) {
1246 if (isRpcMethod(value)) {
1247 results.push([key, value]);
1248 } else if (typeof value === "object" && value !== null) {
1249 results.push(...collectRpcMethods(value as Record<string, unknown>));
1250 }
1251 }
1252 return results;
1253}
1254
1255/** Convert an RPC method name to a Java class name prefix (e.g., "models.list" -> "ModelsList") */
1256function rpcMethodToClassName(rpcMethod: string): string {

Callers 1

generateRpcTypesFunction · 0.70

Calls 2

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…