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

Function emitSourceMapsAfterNode

test/fixtures/snapshot/typescript.js:115061–115075  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

115059 }
115060 }
115061 function emitSourceMapsAfterNode(node) {
115062 var emitFlags = ts.getEmitFlags(node);
115063 var sourceMapRange = ts.getSourceMapRange(node);
115064 // Emit trailing sourcemap
115065 if (!ts.isUnparsedNode(node)) {
115066 if (emitFlags & 64 /* EmitFlags.NoNestedSourceMaps */) {
115067 sourceMapsDisabled = false;
115068 }
115069 if (node.kind !== 349 /* SyntaxKind.NotEmittedStatement */
115070 && (emitFlags & 32 /* EmitFlags.NoTrailingSourceMap */) === 0
115071 && sourceMapRange.end >= 0) {
115072 emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end);
115073 }
115074 }
115075 }
115076 /**
115077 * Skips trivia such as comments and white-space that can be optionally overridden by the source-map source
115078 */

Callers 2

onExitFunction · 0.85

Calls 1

emitSourcePosFunction · 0.85

Tested by

no test coverage detected