(workInProgress)
| 10368 | } |
| 10369 | |
| 10370 | function unwindWork(workInProgress) { |
| 10371 | switch (workInProgress.tag) { |
| 10372 | case ClassComponent: |
| 10373 | { |
| 10374 | popLegacyContextProvider(workInProgress); |
| 10375 | var effectTag = workInProgress.effectTag; |
| 10376 | if (effectTag & ShouldCapture) { |
| 10377 | workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; |
| 10378 | return workInProgress; |
| 10379 | } |
| 10380 | return null; |
| 10381 | } |
| 10382 | case HostRoot: |
| 10383 | { |
| 10384 | popHostContainer(workInProgress); |
| 10385 | popTopLevelLegacyContextObject(workInProgress); |
| 10386 | var _effectTag = workInProgress.effectTag; |
| 10387 | if (_effectTag & ShouldCapture) { |
| 10388 | workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; |
| 10389 | return workInProgress; |
| 10390 | } |
| 10391 | return null; |
| 10392 | } |
| 10393 | case HostComponent: |
| 10394 | { |
| 10395 | popHostContext(workInProgress); |
| 10396 | return null; |
| 10397 | } |
| 10398 | case HostPortal: |
| 10399 | popHostContainer(workInProgress); |
| 10400 | return null; |
| 10401 | case ContextProvider: |
| 10402 | popProvider(workInProgress); |
| 10403 | return null; |
| 10404 | default: |
| 10405 | return null; |
| 10406 | } |
| 10407 | } |
| 10408 | |
| 10409 | function unwindInterruptedWork(interruptedWork) { |
| 10410 | switch (interruptedWork.tag) { |
no test coverage detected