Merge pull request #29555 from petebacondarwin/external-skip-trivia-fix

Use the correct source when skipping trivia
This commit is contained in:
Sheetal Nandi authored and GitHub committed 2019-01-24 12:09:10 -08:00
commit 61b95fea5a
3 files changed
+37 -2

No files matched your search

+2 -2
View File
@@ -4372,10 +4372,10 @@ namespace ts {
}
/**
* Skips trivia such as comments and white-space that can optionally overriden by the source map source
* Skips trivia such as comments and white-space that can be optionally overridden by the source-map source
*/
function skipSourceTrivia(source: SourceMapSource, pos: number): number {
return source.skipTrivia ? source.skipTrivia(pos) : skipTrivia(sourceMapSource.text, pos);
return source.skipTrivia ? source.skipTrivia(pos) : skipTrivia(source.text, pos);
}
/**