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

Function byPosition

src/extraction/index.ts:2170–2171  ·  view source on GitHub ↗
(a: NodeIdentity, b: NodeIdentity)

Source from the content-addressed store, hash-verified

2168): Map<string, string> {
2169 const pairs = new Map<string, string>();
2170 const byPosition = (a: NodeIdentity, b: NodeIdentity) =>
2171 a.startLine - b.startLine || a.startColumn - b.startColumn;
2172 const pairGroups = (before: readonly NodeIdentity[], after: readonly NodeIdentity[], tier: number): void => {
2173 const key = REINDEX_IDENTITY_TIERS[tier]!;
2174 const afterGroups = groupNodeIdentities(after, key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected