(architecture: ArchitectureOverviewDto | undefined)
| 364 | * depending on the language. |
| 365 | */ |
| 366 | export function entryPointNames(architecture: ArchitectureOverviewDto | undefined): Set<string> { |
| 367 | const names = new Set<string>(); |
| 368 | for (const entry of architecture?.entryPoints ?? []) { |
| 369 | if (!PROGRAM_START_NAMES.includes(entry.name)) { |
| 370 | continue; |
| 371 | } |
| 372 | if (entry.qualifiedName) { |
| 373 | names.add(entry.qualifiedName); |
| 374 | } |
| 375 | names.add(entry.name); |
| 376 | } |
| 377 | for (const route of architecture?.routes ?? []) { |
| 378 | if (route.handler) { |
| 379 | names.add(route.handler); |
| 380 | } |
| 381 | } |
| 382 | return names; |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * What the rules get to see about one symbol. |
no outgoing calls
no test coverage detected