(workInProgress)
| 11182 | } |
| 11183 | |
| 11184 | function unwindWork(workInProgress) { |
| 11185 | switch (workInProgress.tag) { |
| 11186 | case ClassComponent: |
| 11187 | { |
| 11188 | popLegacyContextProvider(workInProgress); |
| 11189 | var effectTag = workInProgress.effectTag; |
| 11190 | if (effectTag & ShouldCapture) { |
| 11191 | workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; |
| 11192 | return workInProgress; |
| 11193 | } |
| 11194 | return null; |
| 11195 | } |
| 11196 | case HostRoot: |
| 11197 | { |
| 11198 | popHostContainer(workInProgress); |
| 11199 | popTopLevelLegacyContextObject(workInProgress); |
| 11200 | var _effectTag = workInProgress.effectTag; |
| 11201 | if (_effectTag & ShouldCapture) { |
| 11202 | workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; |
| 11203 | return workInProgress; |
| 11204 | } |
| 11205 | return null; |
| 11206 | } |
| 11207 | case HostComponent: |
| 11208 | { |
| 11209 | popHostContext(workInProgress); |
| 11210 | return null; |
| 11211 | } |
| 11212 | case HostPortal: |
| 11213 | popHostContainer(workInProgress); |
| 11214 | return null; |
| 11215 | case ContextProvider: |
| 11216 | popProvider(workInProgress); |
| 11217 | return null; |
| 11218 | default: |
| 11219 | return null; |
| 11220 | } |
| 11221 | } |
| 11222 | |
| 11223 | function unwindInterruptedWork(interruptedWork) { |
| 11224 | switch (interruptedWork.tag) { |
no test coverage detected