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

Function getLineStarts

test/fixtures/snapshot/typescript.js:10338–10340  ·  view source on GitHub ↗
(sourceFile)

Source from the content-addressed store, hash-verified

10336 ts.computePositionOfLineAndCharacter = computePositionOfLineAndCharacter;
10337 /* @internal */
10338 function getLineStarts(sourceFile) {
10339 return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text));
10340 }
10341 ts.getLineStarts = getLineStarts;
10342 /* @internal */
10343 function computeLineAndCharacterOfPosition(lineStarts, position) {

Callers 3

getLinesBetweenPositionsFunction · 0.85

Calls 1

computeLineStartsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…