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

Function inside

src/ui-server/api/program.ts:426–430  ·  view source on GitHub ↗
(x: ProgramSite['at'], y: ProgramSite['at'])

Source from the content-addressed store, hash-verified

424}
425
426function inside(x: ProgramSite['at'], y: ProgramSite['at']): boolean {
427 const afterStart = x.line > y.line || (x.line === y.line && x.column > y.column);
428 const beforeEnd = x.line < y.end.line || (x.line === y.end.line && x.column < y.end.column);
429 return afterStart && beforeEnd;
430}

Callers 1

compareSitesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected