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

Function at

src/ui-server/api/program.ts:231–234  ·  view source on GitHub ↗

A `line:column` branch as one number, for ordering constructs by where they start.

(branch: string)

Source from the content-addressed store, hash-verified

229
230/** A `line:column` branch as one number, for ordering constructs by where they start. */
231function at(branch: string): number {
232 const [line, column] = branch.split(':');
233 return (Number(line) || 0) * 10000 + (Number(column) || 0);
234}
235
236function sameScope(open: Open, scope: Scope): boolean {
237 if (open.branch !== scope.branch) return false;

Callers 1

scopesOfFunction · 0.70

Calls 1

NumberInterface · 0.85

Tested by

no test coverage detected