Fix for #2268 createDiagnosticCollection should be @internal

DiagnosticsCollection interface is marked @internal in [src/compiler/types.ts](c6cd57d18c/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.
This commit is contained in:
mihailik 2015-03-09 14:05:53 +00:00
parent 848bc87071
commit dc451b0f69

View File

@ -1207,6 +1207,7 @@ module ts {
}
}
// @internal
export function createDiagnosticCollection(): DiagnosticCollection {
var nonFileDiagnostics: Diagnostic[] = [];
var fileDiagnostics: Map<Diagnostic[]> = {};
@ -1336,4 +1337,4 @@ module ts {
s.replace(nonAsciiCharacters, c => get16BitUnicodeEscapeSequence(c.charCodeAt(0))) :
s;
}
}
}