Update LKG (#37175)

* Update LKG

* Remove unneeded check (handled by top of function)
This commit is contained in:
Wesley Wigham
2020-03-02 15:15:41 -08:00
committed by GitHub
parent af4201ff51
commit ff0422091f
13 changed files with 1813 additions and 966 deletions

View File

@@ -2220,7 +2220,7 @@ namespace ts {
// exports.name = expr OR module.exports.name = expr OR exports["name"] = expr ...
return AssignmentDeclarationKind.ExportsProperty;
}
if (isBindableStaticNameExpression(lhs, /*excludeThisKeyword*/ true) || (isElementAccessExpression(lhs) && isDynamicName(lhs) && lhs.expression.kind !== SyntaxKind.ThisKeyword)) {
if (isBindableStaticNameExpression(lhs, /*excludeThisKeyword*/ true) || (isElementAccessExpression(lhs) && isDynamicName(lhs))) {
// F.G...x = expr
return AssignmentDeclarationKind.Property;
}