(state: KnowledgeState, subject: string)
| 348 | * kept identical so a diff of the two files is the check. |
| 349 | */ |
| 350 | export function absenceSentence(state: KnowledgeState, subject: string): string { |
| 351 | switch (state) { |
| 352 | case 'notIndexed': |
| 353 | return `${subject} is unknown because this file is not in the index yet.`; |
| 354 | case 'unsupported': |
| 355 | return `${subject} is unknown because the analyzer does not record this for this language.`; |
| 356 | case 'inferred': |
| 357 | return `${subject} is derived from indexed callers, not read directly.`; |
| 358 | case 'unknown': |
| 359 | return `${subject} is unknown because no analysis backend answered.`; |
| 360 | case 'ambiguous': |
| 361 | case 'known': |
| 362 | return ''; |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | // --------------------------------------------------------------------------- |
| 367 | // Terminology: the same seven sections, named twice |
no outgoing calls
no test coverage detected