Skip to content

Commit c50ccbf

Browse files
author
Andy Hanson
committed
Simplify some code
1 parent f9fd496 commit c50ccbf

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/compiler/checker.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17699,13 +17699,11 @@ namespace ts {
1769917699
/*all meanings*/ SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace | SymbolFlags.Alias);
1770017700
}
1770117701

17702-
if (entityName.kind !== SyntaxKind.PropertyAccessExpression) {
17703-
if (isInRightSideOfImportOrExportAssignment(<EntityName>entityName)) {
17704-
// Since we already checked for ExportAssignment, this really could only be an Import
17705-
const importEqualsDeclaration = <ImportEqualsDeclaration>getAncestor(entityName, SyntaxKind.ImportEqualsDeclaration);
17706-
Debug.assert(importEqualsDeclaration !== undefined);
17707-
return getSymbolOfPartOfRightHandSideOfImportEquals(<EntityName>entityName, importEqualsDeclaration, /*dontResolveAlias*/ true);
17708-
}
17702+
if (entityName.kind !== SyntaxKind.PropertyAccessExpression && isInRightSideOfImportOrExportAssignment(<EntityName>entityName)) {
17703+
// Since we already checked for ExportAssignment, this really could only be an Import
17704+
const importEqualsDeclaration = <ImportEqualsDeclaration>getAncestor(entityName, SyntaxKind.ImportEqualsDeclaration);
17705+
Debug.assert(importEqualsDeclaration !== undefined);
17706+
return getSymbolOfPartOfRightHandSideOfImportEquals(<EntityName>entityName, importEqualsDeclaration, /*dontResolveAlias*/ true);
1770917707
}
1771017708

1771117709
if (isRightSideOfQualifiedNameOrPropertyAccess(entityName)) {

0 commit comments

Comments
 (0)