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

Function createSourceFileLike

test/fixtures/snapshot/typescript.js:144682–144690  ·  view source on GitHub ↗
(text, lineMap)

Source from the content-addressed store, hash-verified

144680 return ts.createDocumentPositionMapper(host, map, mapFileName);
144681 }
144682 function createSourceFileLike(text, lineMap) {
144683 return {
144684 text: text,
144685 lineMap: lineMap,
144686 getLineAndCharacterOfPosition: function (pos) {
144687 return ts.computeLineAndCharacterOfPosition(ts.getLineStarts(this), pos);
144688 }
144689 };
144690 }
144691})(ts || (ts = {}));
144692/* @internal */
144693var ts;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected