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.
1507
+
// This is the case when we are trying to do any language service operation in heritage clauses. By return undefined, the getSymbolOfEntityNameOrPropertyAccessExpression
1508
+
// will attempt to checkPropertyAccessExpression to resolve symbol.
1509
+
// i.e class C extends foo()./*do language service operation here*/B {}
1510
+
return undefined;
1511
+
}
1512
+
const right = name.kind === SyntaxKind.QualifiedName ? name.right : name.name;
else if (name.kind === SyntaxKind.ParenthesizedExpression) {
1515
-
return getSymbolOfNode(name.expression);
1529
+
// 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.
1530
+
// This is the case when we are trying to do any language service operation in heritage clauses. By return undefined, the getSymbolOfEntityNameOrPropertyAccessExpression
1531
+
// will attempt to checkPropertyAccessExpression to resolve symbol.
1532
+
// i.e class C extends foo()./*do language service operation here*/B {}
1533
+
return isEntityNameExpression(name.expression) ?
1534
+
resolveEntityName(name.expression as EntityNameOrEntityNameExpression, meaning, ignoreErrors, dontResolveAlias, location) :
0 commit comments