From dc451b0f69ed58ecddfabd646e1520daf927defe Mon Sep 17 00:00:00 2001 From: mihailik Date: Mon, 9 Mar 2015 14:05:53 +0000 Subject: [PATCH] Fix for #2268 createDiagnosticCollection should be @internal DiagnosticsCollection interface is marked @internal in [src/compiler/types.ts](https://github.com/Microsoft/TypeScript/blob/c6cd57d18c85e59b2fbe9d316725748a0af8ac2b/src/compiler/types.ts#L1761), so this should be @internal too. Otherwise it causes compilation errors whenever the generated type definitions for LS is used. See #2268 for more details. --- src/compiler/utilities.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 28e9b114ec3..76800d77b3c 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1207,6 +1207,7 @@ module ts { } } + // @internal export function createDiagnosticCollection(): DiagnosticCollection { var nonFileDiagnostics: Diagnostic[] = []; var fileDiagnostics: Map = {}; @@ -1336,4 +1337,4 @@ module ts { s.replace(nonAsciiCharacters, c => get16BitUnicodeEscapeSequence(c.charCodeAt(0))) : s; } -} \ No newline at end of file +}