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

Function hopInside

src/ui-server/api/steps.ts:1746–1750  ·  view source on GitHub ↗

`x` starts strictly after `y` starts and before `y` ends.

(x: HopSite, y: HopSite)

Source from the content-addressed store, hash-verified

1744
1745/** `x` starts strictly after `y` starts and before `y` ends. */
1746function hopInside(x: HopSite, y: HopSite): boolean {
1747 const afterStart = x.line > y.line || (x.line === y.line && x.column > y.column);
1748 const beforeEnd = x.line < y.end.line || (x.line === y.end.line && x.column < y.end.column);
1749 return afterStart && beforeEnd;
1750}
1751
1752function posix(p: string): string {
1753 return p.replace(/\\/g, '/');

Callers 1

hopCompareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected