MCPcopy Index your code
hub / github.com/nodejs/node / computeLineAndCharacterOfPosition

Function computeLineAndCharacterOfPosition

test/fixtures/snapshot/typescript.js:10343–10349  ·  view source on GitHub ↗
(lineStarts, position)

Source from the content-addressed store, hash-verified

10341 ts.getLineStarts = getLineStarts;
10342 /* @internal */
10343 function computeLineAndCharacterOfPosition(lineStarts, position) {
10344 var lineNumber = computeLineOfPosition(lineStarts, position);
10345 return {
10346 line: lineNumber,
10347 character: position - lineStarts[lineNumber]
10348 };
10349 }
10350 ts.computeLineAndCharacterOfPosition = computeLineAndCharacterOfPosition;
10351 /**
10352 * @internal

Callers 1

Calls 1

computeLineOfPositionFunction · 0.85

Tested by

no test coverage detected