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

Function getLViewFromLContainer

packages/core/src/render3/view/container.ts:84–96  ·  view source on GitHub ↗
(
  lContainer: LContainer,
  index: number,
)

Source from the content-addressed store, hash-verified

82}
83
84export function getLViewFromLContainer<T>(
85 lContainer: LContainer,
86 index: number,
87): LView<T> | undefined {
88 const adjustedIndex = CONTAINER_HEADER_OFFSET + index;
89 // avoid reading past the array boundaries
90 if (adjustedIndex < lContainer.length) {
91 const lView = lContainer[adjustedIndex];
92 ngDevMode && assertLView(lView);
93 return lView as LView<T>;
94 }
95 return undefined;
96}
97
98export function addLViewToLContainer(
99 lContainer: LContainer,

Callers 2

ɵɵconditionalFunction · 0.90

Calls 1

assertLViewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…