* Where a call leads: the declaration of its target, never its call site. * * A call to `validateUser` on line 24 of `userService.ts` is declared on line * 19 of `validate.ts`, and both numbers are true about different files. * Following the item has to arrive at the declaration, which is what t
(root: string, call: CallSite)
| 192 | * has not read yet. |
| 193 | */ |
| 194 | function calleeTarget(root: string, call: CallSite): SymbolRef | undefined { |
| 195 | return refAt(root, call.targetFile, call.targetLine ?? call.line, call.targetName, call.targetQualifiedName); |
| 196 | } |
| 197 | |
| 198 | /** Keep the first occurrence of each key, so the engine's own order is preserved. */ |
| 199 | function distinctBy<T>(entries: T[], keyOf: (entry: T) => string): T[] { |
no test coverage detected