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

Function assertTNodeCreationIndex

packages/core/src/render3/assert.ts:42–50  ·  view source on GitHub ↗
(lView: LView, index: number)

Source from the content-addressed store, hash-verified

40}
41
42export function assertTNodeCreationIndex(lView: LView, index: number) {
43 const adjustedIndex = index + HEADER_OFFSET;
44 assertIndexInRange(lView, adjustedIndex);
45 assertLessThan(
46 adjustedIndex,
47 lView[TVIEW].bindingStartIndex,
48 'TNodes should be created before any bindings',
49 );
50}
51
52export function assertTNodeForTView(tNode: TNode, tView: TView) {
53 assertTNode(tNode);

Callers 5

ɵɵtextFunction · 0.90
ɵɵelementStartFunction · 0.90
ɵɵdomElementStartFunction · 0.90

Calls 2

assertIndexInRangeFunction · 0.90
assertLessThanFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…