mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Use local source file text to record source map span start
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user