(node: Record<string, unknown>)
| 1241 | } |
| 1242 | |
| 1243 | function 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") */ |
| 1256 | function rpcMethodToClassName(rpcMethod: string): string { |
no test coverage detected
searching dependent graphs…