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

Function emitSourcePos

test/fixtures/snapshot/typescript.js:115098–115109  ·  view source on GitHub ↗
(source, pos)

Source from the content-addressed store, hash-verified

115096 /*nameIndex*/ undefined);
115097 }
115098 function emitSourcePos(source, pos) {
115099 if (source !== sourceMapSource) {
115100 var savedSourceMapSource = sourceMapSource;
115101 var savedSourceMapSourceIndex = sourceMapSourceIndex;
115102 setSourceMapSource(source);
115103 emitPos(pos);
115104 resetSourceMapSource(savedSourceMapSource, savedSourceMapSourceIndex);
115105 }
115106 else {
115107 emitPos(pos);
115108 }
115109 }
115110 /**
115111 * Emits a token of a node with possible leading and trailing source maps.
115112 *

Callers 3

emitSourceMapsBeforeNodeFunction · 0.85
emitSourceMapsAfterNodeFunction · 0.85
emitTokenWithSourceMapFunction · 0.85

Calls 3

setSourceMapSourceFunction · 0.85
emitPosFunction · 0.85
resetSourceMapSourceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…