Skip to content

Commit 53b15bb

Browse files
author
Andy Hanson
committed
Fixes
1 parent 13c6298 commit 53b15bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/compiler/checker.ts

+2
Original file line numberDiff line numberDiff line change
@@ -23638,6 +23638,8 @@ namespace ts {
2363823638
return objectType && getPropertyOfType(objectType, escapeLeadingUnderscores((node as StringLiteral | NumericLiteral).text));
2363923639

2364023640
case SyntaxKind.DefaultKeyword:
23641+
case SyntaxKind.FunctionKeyword:
23642+
case SyntaxKind.EqualsGreaterThanToken:
2364123643
return getSymbolOfNode(node.parent);
2364223644

2364323645
default:

src/services/symbolDisplay.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ namespace ts.SymbolDisplay {
489489
addNewLineIfDisplayPartsExist();
490490
if (symbolKind) {
491491
pushTypePart(symbolKind);
492-
if (!some(symbol.declarations, d => isArrowFunction(d) || (isFunctionExpression(d) || isClassExpression(d)) && !d.name)) {
492+
if (!some(symbol.declarations, d => !(d as NamedDeclaration).name)) {
493493
displayParts.push(spacePart());
494494
addFullSymbolName(symbol);
495495
}

0 commit comments

Comments
 (0)