MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / location

Function location

libatomic/src/review/viewer.js:68–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 };
67 const cardCallout = (id, text) => button(text || id, () => showCard(id, true), 'card-callout');
68 const location = region => region.start_line ? `Lines ${region.start_line}–${region.end_line} · ${viewSnapshot ? 'snapshot' : region.side}` : 'File-level observation · range unavailable';
69 const regionName = region => {
70 const subjects = region.subjects.filter(subject => subject !== region.path);
71 return subjects.length > 1 ? subjects.length + ' source subjects' : subjects[0] || 'File-level facts';

Callers 4

showCardFunction · 0.70
selectionFunction · 0.70
renderNavigationFunction · 0.70
renderCriteriaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected