(ctx: FactStateContext)
| 211 | * however complete the index becomes. |
| 212 | */ |
| 213 | export function knowledgeStateFor(ctx: FactStateContext): KnowledgeState { |
| 214 | if (!ctx.engineAvailable) { |
| 215 | return 'unknown'; |
| 216 | } |
| 217 | if (!ctx.supported) { |
| 218 | return 'unsupported'; |
| 219 | } |
| 220 | if (!ctx.indexed) { |
| 221 | return 'notIndexed'; |
| 222 | } |
| 223 | return ctx.derived ? 'inferred' : 'known'; |
| 224 | } |
| 225 | |
| 226 | /** Map an engine label to the narrower product symbol kind. */ |
| 227 | export function symbolKindOf(label: string | undefined): CodeAtlasSymbolKind { |
no outgoing calls
no test coverage detected