Commit 53b15bb Andy Hanson
committed
1 parent 13c6298 commit 53b15bb Copy full SHA for 53b15bb
File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23638,6 +23638,8 @@ namespace ts {
23638
23638
return objectType && getPropertyOfType(objectType, escapeLeadingUnderscores((node as StringLiteral | NumericLiteral).text));
23639
23639
23640
23640
case SyntaxKind.DefaultKeyword:
23641
+ case SyntaxKind.FunctionKeyword:
23642
+ case SyntaxKind.EqualsGreaterThanToken:
23641
23643
return getSymbolOfNode(node.parent);
23642
23644
23643
23645
default:
Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ namespace ts.SymbolDisplay {
489
489
addNewLineIfDisplayPartsExist ( ) ;
490
490
if ( symbolKind ) {
491
491
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 ) ) {
493
493
displayParts . push ( spacePart ( ) ) ;
494
494
addFullSymbolName ( symbol ) ;
495
495
}
You can’t perform that action at this time.
0 commit comments