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