Normalise one fact's file references, leaving state and evidence semantics alone.
(root: string, fact: Fact<T[]>)
| 250 | |
| 251 | /** Normalise one fact's file references, leaving state and evidence semantics alone. */ |
| 252 | function normalizeFact<T extends { file?: string }>(root: string, fact: Fact<T[]>): Fact<T[]> { |
| 253 | return { |
| 254 | ...fact, |
| 255 | value: withUris(root, fact.value), |
| 256 | evidence: evidenceWithUris(root, fact.evidence) |
| 257 | }; |
| 258 | } |
| 259 | |
| 260 | function normalizeCalls(root: string, fact: Fact<CallSite[]>): Fact<CallSite[]> { |
| 261 | return { |
no test coverage detected