@@ -2408,7 +2408,7 @@ namespace ts {
2408
2408
|| node.kind === SyntaxKind.ExportSpecifier
2409
2409
|| node.kind === SyntaxKind.ExportAssignment && exportAssignmentIsAlias(<ExportAssignment>node)
2410
2410
|| isBinaryExpression(node) && getAssignmentDeclarationKind(node) === AssignmentDeclarationKind.ModuleExports && exportAssignmentIsAlias(node)
2411
- || isPropertyAccessExpression (node)
2411
+ || isAccessExpression (node)
2412
2412
&& isBinaryExpression(node.parent)
2413
2413
&& node.parent.left === node
2414
2414
&& node.parent.operatorToken.kind === SyntaxKind.EqualsToken
@@ -2803,7 +2803,7 @@ namespace ts {
2803
2803
return getTargetOfAliasLikeExpression(expression, dontRecursivelyResolve);
2804
2804
}
2805
2805
2806
- function getTargetOfPropertyAccessExpression (node: PropertyAccessExpression , dontRecursivelyResolve: boolean): Symbol | undefined {
2806
+ function getTargetOfAccessExpression (node: AccessExpression , dontRecursivelyResolve: boolean): Symbol | undefined {
2807
2807
if (!(isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === SyntaxKind.EqualsToken)) {
2808
2808
return undefined;
2809
2809
}
@@ -2836,8 +2836,9 @@ namespace ts {
2836
2836
return resolveEntityName((node as ShorthandPropertyAssignment).name, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace, /*ignoreErrors*/ true, dontRecursivelyResolve);
2837
2837
case SyntaxKind.PropertyAssignment:
2838
2838
return getTargetOfPropertyAssignment(node as PropertyAssignment, dontRecursivelyResolve);
2839
+ case SyntaxKind.ElementAccessExpression:
2839
2840
case SyntaxKind.PropertyAccessExpression:
2840
- return getTargetOfPropertyAccessExpression (node as PropertyAccessExpression , dontRecursivelyResolve);
2841
+ return getTargetOfAccessExpression (node as AccessExpression , dontRecursivelyResolve);
2841
2842
default:
2842
2843
return Debug.fail();
2843
2844
}
0 commit comments