* A lightweight version of leave which is used with DI. * * This function only resets `currentTNode` and `LView` as those are the only properties * used with DI (`enterDI()`). * * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where * as `leaveViewL
()
| 699 | * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`. |
| 700 | */ |
| 701 | function leaveViewLight(): LFrame { |
| 702 | const oldLFrame = instructionState.lFrame; |
| 703 | instructionState.lFrame = oldLFrame.parent; |
| 704 | oldLFrame.currentTNode = null!; |
| 705 | oldLFrame.lView = null!; |
| 706 | return oldLFrame; |
| 707 | } |
| 708 | |
| 709 | /** |
| 710 | * This is a lightweight version of the `leaveView` which is needed by the DI system. |
no outgoing calls
no test coverage detected
searching dependent graphs…