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

Function getPositionOfLineAndCharacter

test/fixtures/snapshot/typescript.js:10304–10308  ·  view source on GitHub ↗
(sourceFile, line, character, allowEdits)

Source from the content-addressed store, hash-verified

10302 }
10303 ts.computeLineStarts = computeLineStarts;
10304 function getPositionOfLineAndCharacter(sourceFile, line, character, allowEdits) {
10305 return sourceFile.getPositionOfLineAndCharacter ?
10306 sourceFile.getPositionOfLineAndCharacter(line, character, allowEdits) :
10307 computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character, sourceFile.text, allowEdits);
10308 }
10309 ts.getPositionOfLineAndCharacter = getPositionOfLineAndCharacter;
10310 /* @internal */
10311 function computePositionOfLineAndCharacter(lineStarts, line, character, debugText, allowEdits) {

Callers

nothing calls this directly

Calls 2

getLineStartsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…