@@ -5490,9 +5490,10 @@ namespace ts {
5490
5490
} ;
5491
5491
}
5492
5492
5493
- function isImportOrExportSpecifierImportSymbol ( symbol : Symbol ) {
5493
+ function isES6StyleImportSymbol ( symbol : Symbol ) {
5494
5494
return ( symbol . flags & SymbolFlags . Alias ) && forEach ( symbol . declarations , declaration => {
5495
- return declaration . kind === SyntaxKind . ImportSpecifier || declaration . kind === SyntaxKind . ExportSpecifier ;
5495
+ return declaration . kind === SyntaxKind . ImportSpecifier || declaration . kind === SyntaxKind . ExportSpecifier
5496
+ || declaration . kind === SyntaxKind . ImportClause || declaration . kind === SyntaxKind . NamespaceImport ;
5496
5497
} ) ;
5497
5498
}
5498
5499
@@ -5936,8 +5937,8 @@ namespace ts {
5936
5937
// The search set contains at least the current symbol
5937
5938
let result = [ symbol ] ;
5938
5939
5939
- // If the symbol is an alias, add what it alaises to the list
5940
- if ( isImportOrExportSpecifierImportSymbol ( symbol ) ) {
5940
+ // If the symbol is an alias, add what it aliases to the list
5941
+ if ( isES6StyleImportSymbol ( symbol ) ) {
5941
5942
result . push ( typeChecker . getAliasedSymbol ( symbol ) ) ;
5942
5943
}
5943
5944
@@ -6028,7 +6029,7 @@ namespace ts {
6028
6029
6029
6030
// If the reference symbol is an alias, check if what it is aliasing is one of the search
6030
6031
// symbols.
6031
- if ( isImportOrExportSpecifierImportSymbol ( referenceSymbol ) ) {
6032
+ if ( isES6StyleImportSymbol ( referenceSymbol ) ) {
6032
6033
const aliasedSymbol = typeChecker . getAliasedSymbol ( referenceSymbol ) ;
6033
6034
if ( searchSymbols . indexOf ( aliasedSymbol ) >= 0 ) {
6034
6035
return aliasedSymbol ;
0 commit comments