MCPcopy Index your code
hub / github.com/angular/angular / getBeforeNodeForView

Function getBeforeNodeForView

packages/core/src/render3/node_manipulation.ts:734–748  ·  view source on GitHub ↗
(
  viewIndexInContainer: number,
  lContainer: LContainer,
)

Source from the content-addressed store, hash-verified

732}
733
734export function getBeforeNodeForView(
735 viewIndexInContainer: number,
736 lContainer: LContainer,
737): RNode | null {
738 const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;
739 if (nextViewIndex < lContainer.length) {
740 const lView = lContainer[nextViewIndex] as LView;
741 const firstTNodeOfView = lView[TVIEW].firstChild;
742 if (firstTNodeOfView !== null) {
743 return getFirstNativeNode(lView, firstTNodeOfView);
744 }
745 }
746
747 return lContainer[NATIVE];
748}
749
750/**
751 * Performs the operation of `action` on the node. Typically this involves inserting or removing

Callers 2

addLViewToLContainerFunction · 0.90
getFirstNativeNodeFunction · 0.85

Calls 1

getFirstNativeNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…