You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the expression in property-access expression is not entity-name or parenthsizedExpression (e.g. it is a call expression), it won't be able to successfully resolve the name.
1521
+
// This is the case when we are trying to do any language service operation in heritage clauses. By return undefined, the getSymbolOfEntityNameOrPropertyAccessExpression
1522
+
// will attempt to checkPropertyAccessExpression to resolve symbol.
1523
+
// i.e class C extends foo()./*do language service operation here*/B {}
1524
+
return undefined;
1525
+
}
1526
+
const right = name.kind === SyntaxKind.QualifiedName ? name.right : name.name;
else if (name.kind === SyntaxKind.ParenthesizedExpression) {
1543
+
// If the expression in parenthsizedExpression is not an entity-name (e.g. it is a call expression), it won't be able to successfully resolve the name.
1544
+
// This is the case when we are trying to do any language service operation in heritage clauses. By return undefined, the getSymbolOfEntityNameOrPropertyAccessExpression
1545
+
// will attempt to checkPropertyAccessExpression to resolve symbol.
1546
+
// i.e class C extends foo()./*do language service operation here*/B {}
1547
+
return isEntityNameExpression(name.expression) ?
1548
+
resolveEntityName(name.expression as EntityNameOrEntityNameExpression, meaning, ignoreErrors, dontResolveAlias, location) :
1549
+
undefined;
1550
+
}
1528
1551
else {
1529
1552
Debug.fail("Unknown entity name kind.");
1530
1553
}
@@ -21689,7 +21712,6 @@ namespace ts {
21689
21712
21690
21713
if (isHeritageClauseElementIdentifier(<EntityName>entityName)) {
21691
21714
let meaning = SymbolFlags.None;
21692
-
21693
21715
// In an interface or class, we're definitely interested in a type.
21694
21716
if (entityName.parent.kind === SyntaxKind.ExpressionWithTypeArguments) {
0 commit comments