mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
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…
x
Reference in New Issue
Block a user