(chain)
| 97456 | } |
| 97457 | } |
| 97458 | function flattenChain(chain) { |
| 97459 | ts.Debug.assertNotNode(chain, ts.isNonNullChain); |
| 97460 | var links = [chain]; |
| 97461 | while (!chain.questionDotToken && !ts.isTaggedTemplateExpression(chain)) { |
| 97462 | chain = ts.cast(ts.skipPartiallyEmittedExpressions(chain.expression), ts.isOptionalChain); |
| 97463 | ts.Debug.assertNotNode(chain, ts.isNonNullChain); |
| 97464 | links.unshift(chain); |
| 97465 | } |
| 97466 | return { expression: chain.expression, chain: links }; |
| 97467 | } |
| 97468 | function visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete) { |
| 97469 | var expression = visitNonOptionalExpression(node.expression, captureThisArg, isDelete); |
| 97470 | if (ts.isSyntheticReference(expression)) { |
no test coverage detected