MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / walkTo

Function walkTo

ui/src/lib/walk.ts:33–37  ·  view source on GitHub ↗
(target: WalkTarget, dir: HopDirection, line?: number)

Source from the content-addressed store, hash-verified

31 * @param line a line to highlight and scroll to in the destination.
32 */
33export 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.

Callers 1

openEntryTargetFunction · 0.85

Calls 4

symbolHrefFunction · 0.90
navigateFunction · 0.90
encodeTrailFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected