(node: Record<string, unknown>)
| 4233 | } |
| 4234 | |
| 4235 | function collectClientGroups(node: Record<string, unknown>): ClientGroup[] { |
| 4236 | const groups: ClientGroup[] = []; |
| 4237 | for (const [groupName, groupNode] of sortByPascalName(Object.entries(node))) { |
| 4238 | if (typeof groupNode === "object" && groupNode !== null) { |
| 4239 | groups.push({ |
| 4240 | groupName, |
| 4241 | groupNode: groupNode as Record<string, unknown>, |
| 4242 | methods: collectRpcMethods(groupNode as Record<string, unknown>).sort(compareRpcMethodsByGoName), |
| 4243 | }); |
| 4244 | } |
| 4245 | } |
| 4246 | return groups; |
| 4247 | } |
| 4248 | |
| 4249 | function clientHandlerInterfaceName(groupName: string): string { |
| 4250 | return `${toGoFieldName(groupName)}Handler`; |
no test coverage detected
searching dependent graphs…