Skip to content

Commit 6968d83

Browse files
committed
Do not use a while loop, as an aliased symbol is always one level deap
1 parent 55621aa commit 6968d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2149,7 +2149,7 @@ module ts {
21492149
var symbol = typeInfoResolver.getSymbolInfo(mappedNode);
21502150

21512151
// This is an alias, follow what it aliases
2152-
while (symbol && symbol.flags & SymbolFlags.Import) {
2152+
if (symbol && symbol.flags & SymbolFlags.Import) {
21532153
symbol = typeInfoResolver.getAliasedSymbol(symbol);
21542154
}
21552155

0 commit comments

Comments
 (0)