(fileName)
| 18051 | return nonFileDiagnostics; |
| 18052 | } |
| 18053 | function getDiagnostics(fileName) { |
| 18054 | if (fileName) { |
| 18055 | return fileDiagnostics.get(fileName) || []; |
| 18056 | } |
| 18057 | var fileDiags = ts.flatMapToMutable(filesWithDiagnostics, function (f) { return fileDiagnostics.get(f); }); |
| 18058 | if (!nonFileDiagnostics.length) { |
| 18059 | return fileDiags; |
| 18060 | } |
| 18061 | fileDiags.unshift.apply(fileDiags, nonFileDiagnostics); |
| 18062 | return fileDiags; |
| 18063 | } |
| 18064 | } |
| 18065 | ts.createDiagnosticCollection = createDiagnosticCollection; |
| 18066 | var templateSubstitutionRegExp = /\$\{/g; |
no test coverage detected