File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -43017,6 +43017,8 @@ namespace ts {
43017
43017
case SyntaxKind.EqualsGreaterThanToken:
43018
43018
case SyntaxKind.ClassKeyword:
43019
43019
return getSymbolOfNode(node.parent);
43020
+ case SyntaxKind.ClassExpression:
43021
+ return node.symbol;
43020
43022
case SyntaxKind.ImportType:
43021
43023
return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : undefined;
43022
43024
@@ -43028,7 +43030,8 @@ namespace ts {
43028
43030
return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : undefined;
43029
43031
case SyntaxKind.MetaProperty:
43030
43032
return checkExpression(node as Expression).symbol;
43031
-
43033
+ case SyntaxKind.ParenthesizedExpression:
43034
+ return getSymbolAtLocation((node as ParenthesizedExpression).expression, ignoreErrors);
43032
43035
default:
43033
43036
return undefined;
43034
43037
}
Original file line number Diff line number Diff line change @@ -172,8 +172,7 @@ namespace ts.GoToDefinition {
172
172
173
173
const baseTypeNode = getEffectiveBaseTypeNode ( baseDeclaration ) ;
174
174
if ( ! baseTypeNode ) return ;
175
- const expression = skipParentheses ( baseTypeNode . expression ) ;
176
- const base = isClassExpression ( expression ) ? expression . symbol : typeChecker . getSymbolAtLocation ( expression ) ;
175
+ const base = typeChecker . getSymbolAtLocation ( baseTypeNode . expression ) ;
177
176
if ( ! base ) return ;
178
177
179
178
const name = unescapeLeadingUnderscores ( getTextOfPropertyName ( classElement . name ) ) ;
You can’t perform that action at this time.
0 commit comments