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

Function offsetOf

src/extraction/objcpp-extractor.ts:101–101  ·  view source on GitHub ↗
(line: number, column: number)

Source from the content-addressed store, hash-verified

99 if (!parts) return null;
100 const lineStarts = lineStartsOf(source);
101 const offsetOf = (line: number, column: number): number => (lineStarts[line - 1] ?? source.length) + column;
102
103 let cpp = run(parts.cpp, 'cpp');
104 let checked = checkCppPass(cpp, parts, offsetOf);

Callers 2

checkCppPassFunction · 0.70
extractObjcppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected