(host, contents, mapFileName)
| 144669 | } |
| 144670 | ts.getDocumentPositionMapper = getDocumentPositionMapper; |
| 144671 | function convertDocumentToSourceMapper(host, contents, mapFileName) { |
| 144672 | var map = ts.tryParseRawSourceMap(contents); |
| 144673 | if (!map || !map.sources || !map.file || !map.mappings) { |
| 144674 | // obviously invalid map |
| 144675 | return undefined; |
| 144676 | } |
| 144677 | // Dont support sourcemaps that contain inlined sources |
| 144678 | if (map.sourcesContent && map.sourcesContent.some(ts.isString)) |
| 144679 | return undefined; |
| 144680 | return ts.createDocumentPositionMapper(host, map, mapFileName); |
| 144681 | } |
| 144682 | function createSourceFileLike(text, lineMap) { |
| 144683 | return { |
| 144684 | text: text, |
no test coverage detected