Merge pull request #29380 from Microsoft/sourceMap

Use the SourceMapSource to get line and column instead of current source file
This commit is contained in:
Sheetal Nandi
2019-01-14 14:30:27 -08:00
committed by GitHub
3 changed files with 42 additions and 2 deletions

View File

@@ -4391,7 +4391,7 @@ namespace ts {
return;
}
const { line: sourceLine, character: sourceCharacter } = getLineAndCharacterOfPosition(currentSourceFile!, pos);
const { line: sourceLine, character: sourceCharacter } = getLineAndCharacterOfPosition(sourceMapSource, pos);
sourceMapGenerator!.addMapping(
writer.getLine(),
writer.getColumn(),