Skip to content

Commit 29869a9

Browse files
committed
Don't return early from markLinkedReferences
1 parent 0a45b40 commit 29869a9

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29701,9 +29701,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2970129701
function markLinkedReferences(location: HasDecorators, hint: ReferenceHint.Decorator): void;
2970229702
function markLinkedReferences(location: Node, hint: ReferenceHint.Unspecified, propSymbol?: Symbol, parentType?: Type): void;
2970329703
function markLinkedReferences(location: Node, hint: ReferenceHint, propSymbol?: Symbol, parentType?: Type) {
29704-
if (!canCollectSymbolAliasAccessabilityData) {
29705-
return;
29706-
}
2970729704
if (location.flags & NodeFlags.Ambient) {
2970829705
return; // References within types and declaration files are never going to contribute to retaining a JS import
2970929706
}
@@ -30007,6 +30004,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3000730004
}
3000830005

3000930006
function markExportAsReferenced(node: ImportEqualsDeclaration | ExportSpecifier) {
30007+
if (!canCollectSymbolAliasAccessabilityData) {
30008+
return;
30009+
}
3001030010
const symbol = getSymbolOfDeclaration(node);
3001130011
const target = resolveAlias(symbol);
3001230012
if (target) {

tests/baselines/reference/jsxReactReferencedImport.errors.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)