| 455 | const loopsAt = (caller: Node, site: { line?: number; column?: number }) => reader.loops(caller, site); |
| 456 | const argsAt = (caller: Node, site: { line?: number; column?: number }) => reader.args(caller, site); |
| 457 | const withArgs = async (site: WireStepSite, caller: Node, at: { line?: number; column?: number }): Promise<WireStepSite> => { |
| 458 | const args = await argsAt(caller, at); |
| 459 | return args === null ? site : { ...site, args }; |
| 460 | }; |
| 461 | /** The call as written at a site, and what it passes — one read for both. */ |
| 462 | const callAt = (caller: Node, site: { line?: number; column?: number; callee?: string }) => calls.callSite(caller, site); |
| 463 | /** A hop's position with its call's span and enclosing call, read from the tree; the bare position when unreadable. */ |