(module: any)
| 124 | } |
| 125 | |
| 126 | function _getDescendantControllers(module: any) { |
| 127 | const descendantModules = _getDescendantModules(module); |
| 128 | |
| 129 | const descendantControllers = getModuleInfo(module).controllers ?? []; |
| 130 | |
| 131 | for (const descendantModule of descendantModules) { |
| 132 | const moduleInfo = getModuleInfo(descendantModule); |
| 133 | |
| 134 | descendantControllers.push(...(moduleInfo.controllers ?? [])); |
| 135 | } |
| 136 | |
| 137 | return descendantControllers; |
| 138 | } |
| 139 | |
| 140 | export function getModuleInfo(module: any) { |
| 141 | let moduleInfo = _moduleInfos.get(module); |
no test coverage detected