(workInProgress)
| 10405 | } |
| 10406 | |
| 10407 | function unwindWork(workInProgress) { |
| 10408 | switch (workInProgress.tag) { |
| 10409 | case ClassComponent: |
| 10410 | { |
| 10411 | popLegacyContextProvider(workInProgress); |
| 10412 | var effectTag = workInProgress.effectTag; |
| 10413 | if (effectTag & ShouldCapture) { |
| 10414 | workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; |
| 10415 | return workInProgress; |
| 10416 | } |
| 10417 | return null; |
| 10418 | } |
| 10419 | case HostRoot: |
| 10420 | { |
| 10421 | popHostContainer(workInProgress); |
| 10422 | popTopLevelLegacyContextObject(workInProgress); |
| 10423 | var _effectTag = workInProgress.effectTag; |
| 10424 | if (_effectTag & ShouldCapture) { |
| 10425 | workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; |
| 10426 | return workInProgress; |
| 10427 | } |
| 10428 | return null; |
| 10429 | } |
| 10430 | case HostComponent: |
| 10431 | { |
| 10432 | popHostContext(workInProgress); |
| 10433 | return null; |
| 10434 | } |
| 10435 | case HostPortal: |
| 10436 | popHostContainer(workInProgress); |
| 10437 | return null; |
| 10438 | case ContextProvider: |
| 10439 | popProvider(workInProgress); |
| 10440 | return null; |
| 10441 | default: |
| 10442 | return null; |
| 10443 | } |
| 10444 | } |
| 10445 | |
| 10446 | function unwindInterruptedWork(interruptedWork) { |
| 10447 | switch (interruptedWork.tag) { |
no test coverage detected