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

Function emitPos

test/fixtures/snapshot/typescript.js:115090–115097  ·  view source on GitHub ↗

* Emits a mapping. * * If the position is synthetic (undefined or a negative value), no mapping will be * created. * * @param pos The position.

(pos)

Source from the content-addressed store, hash-verified

115088 * @param pos The position.
115089 */
115090 function emitPos(pos) {
115091 if (sourceMapsDisabled || ts.positionIsSynthesized(pos) || isJsonSourceMapSource(sourceMapSource)) {
115092 return;
115093 }
115094 var _a = ts.getLineAndCharacterOfPosition(sourceMapSource, pos), sourceLine = _a.line, sourceCharacter = _a.character;
115095 sourceMapGenerator.addMapping(writer.getLine(), writer.getColumn(), sourceMapSourceIndex, sourceLine, sourceCharacter,
115096 /*nameIndex*/ undefined);
115097 }
115098 function emitSourcePos(source, pos) {
115099 if (source !== sourceMapSource) {
115100 var savedSourceMapSource = sourceMapSource;

Callers 6

emitLeadingCommentFunction · 0.85
emitTrailingCommentFunction · 0.85
emitCommentFunction · 0.85
emitSourcePosFunction · 0.85

Calls 1

isJsonSourceMapSourceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…