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

Function inClass

__tests__/resolution.test.ts:2783–2784  ·  view source on GitHub ↗
(m: (typeof logs)[number], c: typeof logger)

Source from the content-addressed store, hash-verified

2781
2782 // Associate each same-named `log` with its class by line containment.
2783 const inClass = (m: (typeof logs)[number], c: typeof logger) =>
2784 m.startLine >= c.startLine && m.startLine <= (c.endLine ?? c.startLine);
2785 const loggerLog = logs.find((m) => inClass(m, logger))!;
2786 const otherLog = logs.find((m) => inClass(m, other))!;
2787 expect(loggerLog, "Logger's log").toBeDefined();

Callers 1

resolution.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected