Merge pull request #20545 from RyanCavanaugh/codefixOmnibus

Omnibus fixes for telemetry-sourced crashes
This commit is contained in:
Ryan Cavanaugh authored and GitHub committed 2017-12-13 12:49:58 -08:00
commit f6603cd9f2
7 files changed
+55 -5

No files matched your search

+6 -1
View File
@@ -3951,7 +3951,12 @@ namespace ts {
writePunctuation(writer, SyntaxKind.CloseBracketToken);
writePunctuation(writer, SyntaxKind.ColonToken);
writeSpace(writer);
buildTypeDisplay(info.type, writer, enclosingDeclaration, globalFlags, symbolStack);
if (info.type) {
buildTypeDisplay(info.type, writer, enclosingDeclaration, globalFlags, symbolStack);
}
else {
writeKeyword(writer, SyntaxKind.AnyKeyword);
}
writePunctuation(writer, SyntaxKind.SemicolonToken);
writer.writeLine();
}