Check for this symbol before getting display parts

This commit is contained in:
Richard Knoll committed 2016-08-26 16:52:25 -07:00
1 parent 1763db4698
commit d72ed3c0b0
1 file changed
+2 -2
+2 -2
View File
@@ -6570,8 +6570,8 @@ namespace ts {
const thisOrSuperSymbol = typeChecker.getSymbolAtLocation(thisOrSuperKeyword);
const { displayParts } = getSymbolDisplayPartsDocumentationAndSymbolKind(
thisOrSuperSymbol, thisOrSuperKeyword.getSourceFile(), getContainerNode(thisOrSuperKeyword), thisOrSuperKeyword);
const displayParts = thisOrSuperSymbol && getSymbolDisplayPartsDocumentationAndSymbolKind(
thisOrSuperSymbol, thisOrSuperKeyword.getSourceFile(), getContainerNode(thisOrSuperKeyword), thisOrSuperKeyword).displayParts;
return [{
definition: {