Removed some unnecessary changes and added comments

This commit is contained in:
Sheetal Nandi
2015-12-10 15:35:47 -08:00
parent 9c413f7d55
commit df3a74b6ca
3 changed files with 10 additions and 11 deletions

View File

@@ -232,20 +232,17 @@ namespace ts {
sourceMapData.sourceMapDecodedMappings.push(lastEncodedSourceMapSpan);
}
function getSourceLinePos(pos: number) {
const sourceLinePos = getLineAndCharacterOfPosition(currentSourceFile, pos);
// Convert the location to be one-based.
sourceLinePos.line++;
sourceLinePos.character++;
return sourceLinePos;
}
function emitPos(pos: number) {
if (pos === -1) {
return;
}
const sourceLinePos = getSourceLinePos(pos);
const sourceLinePos = getLineAndCharacterOfPosition(currentSourceFile, pos);
// Convert the location to be one-based.
sourceLinePos.line++;
sourceLinePos.character++;
const emittedLine = writer.getLine();
const emittedColumn = writer.getColumn();