Skip to content

Commit d72ed3c

Browse files
committed
Check for this symbol before getting display parts
1 parent 1763db4 commit d72ed3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6570,8 +6570,8 @@ namespace ts {
65706570

65716571
const thisOrSuperSymbol = typeChecker.getSymbolAtLocation(thisOrSuperKeyword);
65726572

6573-
const { displayParts } = getSymbolDisplayPartsDocumentationAndSymbolKind(
6574-
thisOrSuperSymbol, thisOrSuperKeyword.getSourceFile(), getContainerNode(thisOrSuperKeyword), thisOrSuperKeyword);
6573+
const displayParts = thisOrSuperSymbol && getSymbolDisplayPartsDocumentationAndSymbolKind(
6574+
thisOrSuperSymbol, thisOrSuperKeyword.getSourceFile(), getContainerNode(thisOrSuperKeyword), thisOrSuperKeyword).displayParts;
65756575

65766576
return [{
65776577
definition: {

0 commit comments

Comments
 (0)