(workInProgress)
| 10277 | } |
| 10278 | |
| 10279 | function unwindWork(workInProgress) { |
| 10280 | switch (workInProgress.tag) { |
| 10281 | case ClassComponent: |
| 10282 | { |
| 10283 | popLegacyContextProvider(workInProgress); |
| 10284 | var effectTag = workInProgress.effectTag; |
| 10285 | if (effectTag & ShouldCapture) { |
| 10286 | workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; |
| 10287 | return workInProgress; |
| 10288 | } |
| 10289 | return null; |
| 10290 | } |
| 10291 | case HostRoot: |
| 10292 | { |
| 10293 | popHostContainer(workInProgress); |
| 10294 | popTopLevelLegacyContextObject(workInProgress); |
| 10295 | var _effectTag = workInProgress.effectTag; |
| 10296 | if (_effectTag & ShouldCapture) { |
| 10297 | workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; |
| 10298 | return workInProgress; |
| 10299 | } |
| 10300 | return null; |
| 10301 | } |
| 10302 | case HostComponent: |
| 10303 | { |
| 10304 | popHostContext(workInProgress); |
| 10305 | return null; |
| 10306 | } |
| 10307 | case HostPortal: |
| 10308 | popHostContainer(workInProgress); |
| 10309 | return null; |
| 10310 | case ContextProvider: |
| 10311 | popProvider(workInProgress); |
| 10312 | return null; |
| 10313 | default: |
| 10314 | return null; |
| 10315 | } |
| 10316 | } |
| 10317 | |
| 10318 | function unwindInterruptedWork(interruptedWork) { |
| 10319 | switch (interruptedWork.tag) { |
no test coverage detected