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

Function getNativeByIndex

packages/core/src/render3/util/view_utils.ts:87–91  ·  view source on GitHub ↗
(index: number, lView: LView)

Source from the content-addressed store, hash-verified

85 * from any containers, component views, or style contexts.
86 */
87export function getNativeByIndex(index: number, lView: LView): RNode {
88 ngDevMode && assertIndexInRange(lView, index);
89 ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');
90 return unwrapRNode(lView[index]);
91}
92
93/**
94 * Retrieve an `RNode` for a given `TNode` and `LView`.

Callers 7

styling_spec.tsFile · 0.90
applyMutableOpCodesFunction · 0.90
applyIcuSwitchCaseRemoveFunction · 0.90
updateStylingFunction · 0.90
textBindingInternalFunction · 0.90
getTriggerElementFunction · 0.90

Calls 3

assertIndexInRangeFunction · 0.90
assertGreaterThanOrEqualFunction · 0.90
unwrapRNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…