Use local source file text to record source map span start
This commit is contained in:
parent
b53e989f88
commit
21020a71d1
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue