(node)
| 55816 | } |
| 55817 | } |
| 55818 | function getParentElementAccess(node) { |
| 55819 | var ancestor = node.parent.parent; |
| 55820 | switch (ancestor.kind) { |
| 55821 | case 203 /* SyntaxKind.BindingElement */: |
| 55822 | case 296 /* SyntaxKind.PropertyAssignment */: |
| 55823 | return getSyntheticElementAccess(ancestor); |
| 55824 | case 204 /* SyntaxKind.ArrayLiteralExpression */: |
| 55825 | return getSyntheticElementAccess(node.parent); |
| 55826 | case 254 /* SyntaxKind.VariableDeclaration */: |
| 55827 | return ancestor.initializer; |
| 55828 | case 221 /* SyntaxKind.BinaryExpression */: |
| 55829 | return ancestor.right; |
| 55830 | } |
| 55831 | } |
| 55832 | function getDestructuringPropertyName(node) { |
| 55833 | var parent = node.parent; |
| 55834 | if (node.kind === 203 /* SyntaxKind.BindingElement */ && parent.kind === 201 /* SyntaxKind.ObjectBindingPattern */) { |
no test coverage detected