(workInProgress)
| 10917 | } |
| 10918 | |
| 10919 | function unwindWork(workInProgress) { |
| 10920 | switch (workInProgress.tag) { |
| 10921 | case ClassComponent: |
| 10922 | { |
| 10923 | popLegacyContextProvider(workInProgress); |
| 10924 | var effectTag = workInProgress.effectTag; |
| 10925 | if (effectTag & ShouldCapture) { |
| 10926 | workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; |
| 10927 | return workInProgress; |
| 10928 | } |
| 10929 | return null; |
| 10930 | } |
| 10931 | case HostRoot: |
| 10932 | { |
| 10933 | popHostContainer(workInProgress); |
| 10934 | popTopLevelLegacyContextObject(workInProgress); |
| 10935 | var _effectTag = workInProgress.effectTag; |
| 10936 | if (_effectTag & ShouldCapture) { |
| 10937 | workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; |
| 10938 | return workInProgress; |
| 10939 | } |
| 10940 | return null; |
| 10941 | } |
| 10942 | case HostComponent: |
| 10943 | { |
| 10944 | popHostContext(workInProgress); |
| 10945 | return null; |
| 10946 | } |
| 10947 | case HostPortal: |
| 10948 | popHostContainer(workInProgress); |
| 10949 | return null; |
| 10950 | case ContextProvider: |
| 10951 | popProvider(workInProgress); |
| 10952 | return null; |
| 10953 | default: |
| 10954 | return null; |
| 10955 | } |
| 10956 | } |
| 10957 | |
| 10958 | function unwindInterruptedWork(interruptedWork) { |
| 10959 | switch (interruptedWork.tag) { |
no test coverage detected