@@ -22500,25 +22500,25 @@ namespace ts {
22500
22500
}
22501
22501
22502
22502
if (entityName.kind === SyntaxKind.Identifier) {
22503
- if (isJSXTagName(entityName) && isJsxIntrinsicIdentifier(<Identifier> entityName)) {
22503
+ if (isJSXTagName(entityName) && isJsxIntrinsicIdentifier(entityName)) {
22504
22504
return getIntrinsicTagSymbol(<JsxOpeningLikeElement>entityName.parent);
22505
22505
}
22506
22506
22507
- return resolveEntityName(<Identifier> entityName, SymbolFlags.Value, /*ignoreErrors*/ false, /*dontResolveAlias*/ true);
22507
+ return resolveEntityName(entityName, SymbolFlags.Value, /*ignoreErrors*/ false, /*dontResolveAlias*/ true);
22508
22508
}
22509
- else if (entityName.kind === SyntaxKind.PropertyAccessExpression) {
22510
- const symbol = getNodeLinks(entityName).resolvedSymbol ;
22511
- if (!symbol ) {
22512
- checkPropertyAccessExpression(<PropertyAccessExpression>entityName) ;
22509
+ else if (entityName.kind === SyntaxKind.PropertyAccessExpression || entityName.kind === SyntaxKind.QualifiedName ) {
22510
+ const links = getNodeLinks(entityName);
22511
+ if (links.resolvedSymbol ) {
22512
+ return links.resolvedSymbol ;
22513
22513
}
22514
- return getNodeLinks(entityName).resolvedSymbol;
22515
- }
22516
- else if (entityName.kind === SyntaxKind.QualifiedName) {
22517
- const symbol = getNodeLinks(entityName).resolvedSymbol;
22518
- if (!symbol) {
22519
- checkQualifiedName(<QualifiedName> entityName);
22514
+
22515
+ if (entityName.kind === SyntaxKind.PropertyAccessExpression) {
22516
+ checkPropertyAccessExpression(entityName);
22517
+ }
22518
+ else {
22519
+ checkQualifiedName(entityName);
22520
22520
}
22521
- return getNodeLinks(entityName) .resolvedSymbol;
22521
+ return links .resolvedSymbol;
22522
22522
}
22523
22523
}
22524
22524
else if (isTypeReferenceIdentifier(<EntityName>entityName)) {
0 commit comments