(node, declaredType)
| 55794 | // We construct a synthetic element access expression corresponding to 'obj.x' such that the control |
| 55795 | // flow analyzer doesn't have to handle all the different syntactic forms. |
| 55796 | function getFlowTypeOfDestructuring(node, declaredType) { |
| 55797 | var reference = getSyntheticElementAccess(node); |
| 55798 | return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType; |
| 55799 | } |
| 55800 | function getSyntheticElementAccess(node) { |
| 55801 | var parentAccess = getParentElementAccess(node); |
| 55802 | if (parentAccess && parentAccess.flowNode) { |
no test coverage detected
searching dependent graphs…