* Where a step happens: the call site, in the file of the symbol making the * call. * * Never the callee's declaration. 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; a step is a thing this sy
(ir: SemanticIR, call: CallSite)
| 569 | * are for. |
| 570 | */ |
| 571 | function stepRefOf(ir: SemanticIR, call: CallSite): PseudocodeSourceRef | undefined { |
| 572 | return call.line === undefined ? undefined : { uri: ir.symbol.uri, line: call.line }; |
| 573 | } |
| 574 | |
| 575 | function refOf(file: string | undefined, line: number | undefined): PseudocodeSourceRef | undefined { |
| 576 | if (file === undefined || file.length === 0 || line === undefined) { |