( viewIndexInContainer: number, lContainer: LContainer, )
| 762 | } |
| 763 | |
| 764 | export function getBeforeNodeForView( |
| 765 | viewIndexInContainer: number, |
| 766 | lContainer: LContainer, |
| 767 | ): RNode | null { |
| 768 | const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1; |
| 769 | if (nextViewIndex < lContainer.length) { |
| 770 | const lView = lContainer[nextViewIndex] as LView; |
| 771 | const firstTNodeOfView = lView[TVIEW].firstChild; |
| 772 | if (firstTNodeOfView !== null) { |
| 773 | return getFirstNativeNode(lView, firstTNodeOfView); |
| 774 | } |
| 775 | } |
| 776 | |
| 777 | return lContainer[NATIVE]; |
| 778 | } |
| 779 | |
| 780 | /** |
| 781 | * Performs the operation of `action` on the node. Typically this involves inserting or removing |
no test coverage detected