(kind: CodeAtlasSymbolKind)
| 491 | * not spend their attention on one. |
| 492 | */ |
| 493 | export function plainKind(kind: CodeAtlasSymbolKind): string { |
| 494 | switch (kind) { |
| 495 | case 'function': return 'function'; |
| 496 | case 'method': return 'method'; |
| 497 | case 'class': return 'class'; |
| 498 | case 'interface': return 'contract other code has to satisfy'; |
| 499 | case 'module': return 'file'; |
| 500 | case 'variable': return 'value'; |
| 501 | case 'type': return 'shape'; |
| 502 | case 'route': return 'endpoint'; |
| 503 | case 'unknown': return 'piece of code'; |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | export function proseLead(name: string, kind: CodeAtlasSymbolKind): string { |
| 508 | return `${name} is a ${plainKind(kind)}.`; |
no outgoing calls
no test coverage detected