(target: WalkTarget, dir: HopDirection, line?: number)
| 31 | * @param line a line to highlight and scroll to in the destination. |
| 32 | */ |
| 33 | export function walkTo(target: WalkTarget, dir: HopDirection, line?: number): void { |
| 34 | trail.push({ id: target.id, name: target.name ?? null, kind: target.kind ?? null, dir }); |
| 35 | const href = symbolHref(target.id, { trail: encodeTrail(trail.hops), ...(line ? { line } : {}) }); |
| 36 | navigate(href); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Where the reader arrived from, and which rail should show it. |
no test coverage detected