(workInProgress)
| 11137 | } |
| 11138 | |
| 11139 | function unwindWork(workInProgress) { |
| 11140 | switch (workInProgress.tag) { |
| 11141 | case ClassComponent: |
| 11142 | { |
| 11143 | popLegacyContextProvider(workInProgress); |
| 11144 | var effectTag = workInProgress.effectTag; |
| 11145 | if (effectTag & ShouldCapture) { |
| 11146 | workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; |
| 11147 | return workInProgress; |
| 11148 | } |
| 11149 | return null; |
| 11150 | } |
| 11151 | case HostRoot: |
| 11152 | { |
| 11153 | popHostContainer(workInProgress); |
| 11154 | popTopLevelLegacyContextObject(workInProgress); |
| 11155 | var _effectTag = workInProgress.effectTag; |
| 11156 | if (_effectTag & ShouldCapture) { |
| 11157 | workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; |
| 11158 | return workInProgress; |
| 11159 | } |
| 11160 | return null; |
| 11161 | } |
| 11162 | case HostComponent: |
| 11163 | { |
| 11164 | popHostContext(workInProgress); |
| 11165 | return null; |
| 11166 | } |
| 11167 | case HostPortal: |
| 11168 | popHostContainer(workInProgress); |
| 11169 | return null; |
| 11170 | case ContextProvider: |
| 11171 | popProvider(workInProgress); |
| 11172 | return null; |
| 11173 | default: |
| 11174 | return null; |
| 11175 | } |
| 11176 | } |
| 11177 | |
| 11178 | function unwindInterruptedWork(interruptedWork) { |
| 11179 | switch (interruptedWork.tag) { |
no test coverage detected