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

Function position

src/resolution/cpp-template-instantiations.ts:1136–1139  ·  view source on GitHub ↗
(a: UnresolvedRef, b: UnresolvedRef)

Source from the content-addressed store, hash-verified

1134}
1135
1136const position = (a: UnresolvedRef, b: UnresolvedRef): number =>
1137 (a.filePath < b.filePath ? -1 : a.filePath > b.filePath ? 1 : 0) || a.line - b.line || a.column - b.column ||
1138 (a.referenceName < b.referenceName ? -1 : a.referenceName > b.referenceName ? 1 : 0) ||
1139 (a.referenceKind < b.referenceKind ? -1 : a.referenceKind > b.referenceKind ? 1 : 0);
1140
1141const EDGE_KIND: Readonly<Record<string, EdgeKind>> = { calls: 'calls', instantiates: 'instantiates', function_ref: 'references' };
1142

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected