Merge pull request #4406 from RyanCavanaugh/fix4404

Correctly identify JSX Expressions as Expression parent nodes
This commit is contained in:
Ryan Cavanaugh
2015-08-21 15:27:39 -07:00
21 changed files with 81 additions and 5 deletions

View File

@@ -978,6 +978,7 @@ namespace ts {
case SyntaxKind.ComputedPropertyName:
return node === (<ComputedPropertyName>parent).expression;
case SyntaxKind.Decorator:
case SyntaxKind.JsxExpression:
return true;
case SyntaxKind.ExpressionWithTypeArguments:
return (<ExpressionWithTypeArguments>parent).expression === node && isExpressionWithTypeArgumentsInClassExtendsClause(parent);