Correctly identify JSX Expressions as Expression parent nodes

Fixes bug #4404
This commit is contained in:
Ryan Cavanaugh
2015-08-21 14:43:14 -07:00
parent 65f4ac6d6f
commit 00d4b4cb50
21 changed files with 82 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);