Merge pull request #25966 from ajafff/shorthandPropertyAssignment-initializer-symbol

correctly resolve Symbol of destructuring shorthand intializer
This commit is contained in:
Mohamed Hegazy
2018-07-26 09:32:39 -07:00
committed by GitHub
10 changed files with 82 additions and 0 deletions
+2
View File
@@ -1633,6 +1633,8 @@ namespace ts {
return true;
case SyntaxKind.ExpressionWithTypeArguments:
return (<ExpressionWithTypeArguments>parent).expression === node && isExpressionWithTypeArgumentsInClassExtendsClause(parent);
case SyntaxKind.ShorthandPropertyAssignment:
return (<ShorthandPropertyAssignment>parent).objectAssignmentInitializer === node;
default:
return isExpressionNode(parent);
}