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

Function getSourceFileLike

test/fixtures/snapshot/typescript.js:144623–144627  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

144621 }
144622 // This can be called from source mapper in either source program or program that includes generated file
144623 function getSourceFileLike(fileName) {
144624 return !host.getSourceFileLike ?
144625 getSourceFile(fileName) || getOrCreateSourceFileLike(fileName) :
144626 host.getSourceFileLike(fileName);
144627 }
144628 function toLineColumnOffset(fileName, position) {
144629 var file = getSourceFileLike(fileName); // TODO: GH#18217
144630 return file.getLineAndCharacterOfPosition(position);

Callers 2

toLineColumnOffsetFunction · 0.85

Calls 2

getSourceFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…