MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / locationLabel

Function locationLabel

graph-ui/src/twin/twin-view-model.ts:283–289  ·  view source on GitHub ↗
(uri: string | undefined, line: number | undefined)

Source from the content-addressed store, hash-verified

281
282/** `validate.ts:19`, or just the file when the line is unrecorded. */
283export function locationLabel(uri: string | undefined, line: number | undefined): string | undefined {
284 const file = displayFile(uri);
285 if (file === undefined) {
286 return undefined;
287 }
288 return line === undefined ? file : `${file}:${line}`;
289}
290
291/**
292 * A navigable reference to one line.

Callers 10

EvidenceBlockFunction · 0.90
PseudocodeViewFunction · 0.90
juniorStepsFunction · 0.90
stepsSectionFunction · 0.85
callersSectionFunction · 0.85
dataSectionFunction · 0.85
errorsSectionFunction · 0.85
testsSectionFunction · 0.85
runtimeSectionFunction · 0.85

Calls 1

displayFileFunction · 0.70

Tested by

no test coverage detected