(workInProgress)
| 11038 | } |
| 11039 | |
| 11040 | function unwindWork(workInProgress) { |
| 11041 | switch (workInProgress.tag) { |
| 11042 | case ClassComponent: |
| 11043 | { |
| 11044 | popLegacyContextProvider(workInProgress); |
| 11045 | var effectTag = workInProgress.effectTag; |
| 11046 | if (effectTag & ShouldCapture) { |
| 11047 | workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; |
| 11048 | return workInProgress; |
| 11049 | } |
| 11050 | return null; |
| 11051 | } |
| 11052 | case HostRoot: |
| 11053 | { |
| 11054 | popHostContainer(workInProgress); |
| 11055 | popTopLevelLegacyContextObject(workInProgress); |
| 11056 | var _effectTag = workInProgress.effectTag; |
| 11057 | if (_effectTag & ShouldCapture) { |
| 11058 | workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; |
| 11059 | return workInProgress; |
| 11060 | } |
| 11061 | return null; |
| 11062 | } |
| 11063 | case HostComponent: |
| 11064 | { |
| 11065 | popHostContext(workInProgress); |
| 11066 | return null; |
| 11067 | } |
| 11068 | case HostPortal: |
| 11069 | popHostContainer(workInProgress); |
| 11070 | return null; |
| 11071 | case ContextProvider: |
| 11072 | popProvider(workInProgress); |
| 11073 | return null; |
| 11074 | default: |
| 11075 | return null; |
| 11076 | } |
| 11077 | } |
| 11078 | |
| 11079 | function unwindInterruptedWork(interruptedWork) { |
| 11080 | switch (interruptedWork.tag) { |
no test coverage detected