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

Function ownerAt

ui/src/lib/filecode-model.ts:189–196  ·  view source on GitHub ↗
(outline: readonly WireOutlineEntry[], line: number)

Source from the content-addressed store, hash-verified

187 * landing uses.
188 */
189export function ownerAt(outline: readonly WireOutlineEntry[], line: number): string | null {
190 let owner: string | null = null;
191 for (const entry of outline) {
192 if (entry.line > line) break;
193 if (line <= entry.endLine) owner = entry.id;
194 }
195 return owner;
196}
197
198/* ---------------------------------------------------------------- ports -- */
199

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected