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

Function getGeneratedMappings

test/fixtures/snapshot/typescript.js:90582–90592  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90580 return sourceMappings[sourceIndex];
90581 }
90582 function getGeneratedMappings() {
90583 if (generatedMappings === undefined) {
90584 var list = [];
90585 for (var _i = 0, _a = getDecodedMappings(); _i < _a.length; _i++) {
90586 var mapping = _a[_i];
90587 list.push(mapping);
90588 }
90589 generatedMappings = ts.sortAndDeduplicate(list, compareGeneratedPositions, sameMappedPosition);
90590 }
90591 return generatedMappings;
90592 }
90593 function getGeneratedPosition(loc) {
90594 var sourceIndex = sourceToSourceIndexMap.get(host.getCanonicalFileName(loc.fileName));
90595 if (sourceIndex === undefined)

Callers 1

getSourcePositionFunction · 0.85

Calls 2

getDecodedMappingsFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…