MCPcopy Create free account
hub / github.com/angular/angular / assertTNodeCreationIndex

Function assertTNodeCreationIndex

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

Source from the content-addressed store, hash-verified

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