Use local source file text to record source map span start

This commit is contained in:
Sheetal Nandi 2014-08-19 20:33:36 -07:00
parent b53e989f88
commit 21020a71d1

View file

@ -345,7 +345,7 @@ module ts {
function recordEmitNodeStartSpan(node: Node) {
// Get the token pos after skipping to the token (ignoring the leading trivia)
recordSourceMapSpan(ts.getTokenPosOfNode(node));
recordSourceMapSpan(skipTrivia(currentSourceFile.text, node.pos));
}
function recordEmitNodeEndSpan(node: Node) {