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