* Emits a mapping. * * If the position is synthetic (undefined or a negative value), no mapping will be * created. * * @param pos The position.
(pos)
| 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; |
no test coverage detected
searching dependent graphs…