File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3619,7 +3619,7 @@ namespace ts {
3619
3619
function getSymbolKind ( symbol : Symbol , location : Node ) : string {
3620
3620
let flags = symbol . getFlags ( ) ;
3621
3621
3622
- if ( flags & SymbolFlags . Class ) return symbol . declarations [ 0 ] . kind === SyntaxKind . ClassExpression ?
3622
+ if ( flags & SymbolFlags . Class ) return getDeclarationOfKind ( symbol , SyntaxKind . ClassExpression ) ?
3623
3623
ScriptElementKind . localClassElement : ScriptElementKind . classElement ;
3624
3624
if ( flags & SymbolFlags . Enum ) return ScriptElementKind . enumElement ;
3625
3625
if ( flags & SymbolFlags . TypeAlias ) return ScriptElementKind . typeElement ;
@@ -3832,7 +3832,7 @@ namespace ts {
3832
3832
// Special case for class expressions because we would like to indicate that
3833
3833
// the class name is local to the class body (similar to function expression)
3834
3834
// (local class) class <className>
3835
- if ( symbol . getName ( ) === "__class" ) {
3835
+ if ( getDeclarationOfKind ( symbol , SyntaxKind . ClassExpression ) ) {
3836
3836
pushTypePart ( ScriptElementKind . localClassElement ) ;
3837
3837
}
3838
3838
else {
You can’t perform that action at this time.
0 commit comments