| 26790 | return updated; |
| 26791 | } |
| 26792 | function shouldBeCapturedInTempVariable(node, cacheIdentifiers) { |
| 26793 | var target = ts.skipParentheses(node); |
| 26794 | switch (target.kind) { |
| 26795 | case 79 /* SyntaxKind.Identifier */: |
| 26796 | return cacheIdentifiers; |
| 26797 | case 108 /* SyntaxKind.ThisKeyword */: |
| 26798 | case 8 /* SyntaxKind.NumericLiteral */: |
| 26799 | case 9 /* SyntaxKind.BigIntLiteral */: |
| 26800 | case 10 /* SyntaxKind.StringLiteral */: |
| 26801 | return false; |
| 26802 | case 204 /* SyntaxKind.ArrayLiteralExpression */: |
| 26803 | var elements = target.elements; |
| 26804 | if (elements.length === 0) { |
| 26805 | return false; |
| 26806 | } |
| 26807 | return true; |
| 26808 | case 205 /* SyntaxKind.ObjectLiteralExpression */: |
| 26809 | return target.properties.length > 0; |
| 26810 | default: |
| 26811 | return true; |
| 26812 | } |
| 26813 | } |
| 26814 | function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers) { |
| 26815 | if (cacheIdentifiers === void 0) { cacheIdentifiers = false; } |
| 26816 | var callee = ts.skipOuterExpressions(expression, 15 /* OuterExpressionKinds.All */); |